mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-08-31 01:35:56 +08:00
fix: minor fixes (#16287)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -38,7 +38,7 @@ type SLogBaseManager struct {
|
||||
type SLogBase struct {
|
||||
SModelBase
|
||||
|
||||
Id int64 `primary:"true" auto_increment:"true" list:"user" clickhouse_partition_by:"toInt64(divide(id,100000000000))"`
|
||||
Id int64 `primary:"true" auto_increment:"true" list:"user" clickhouse_partition_by:"toInt64(id/100000000000)"`
|
||||
}
|
||||
|
||||
func NewLogBaseManager(model interface{}, table string, keyword, keywordPlural string, timeCol string, useClickHouse bool) SLogBaseManager {
|
||||
|
||||
@@ -248,4 +248,7 @@ const (
|
||||
ACT_CANCEL = "cancel"
|
||||
ACT_START = "start"
|
||||
ACT_DONE = "done"
|
||||
|
||||
ACT_ASSOCIATE = "associate"
|
||||
ACT_DISSOCIATE = "dissociate"
|
||||
)
|
||||
|
||||
@@ -1376,4 +1376,14 @@ func init() {
|
||||
EN("Done").
|
||||
CN("完成"),
|
||||
)
|
||||
|
||||
o.Set(ACT_ASSOCIATE, i18n.NewTableEntry().
|
||||
EN("Associate").
|
||||
CN("关联"),
|
||||
)
|
||||
|
||||
o.Set(ACT_DISSOCIATE, i18n.NewTableEntry().
|
||||
EN("Dissociate").
|
||||
CN("解除关联"),
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user