3 Star 2 Fork 1

fotomxq/weeekj_core

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
fields_dimensions.go 1.15 KB
Copy Edit Raw Blame History
fotomxq authored 2024-11-19 19:09 +08:00 . 优化维度模块设计;
package AnalysisIndexDimensions
import "time"
// FieldsDimensions 维度定义
type FieldsDimensions struct {
// ID
ID int64 `db:"id" json:"id" check:"id" unique:"true"`
//创建时间
CreateAt time.Time `db:"create_at" json:"createAt" default:"now()"`
//更新时间
UpdateAt time.Time `db:"update_at" json:"updateAt" default:"now()"`
//删除时间
DeleteAt time.Time `db:"delete_at" json:"deleteAt" default:"0" index:"true"`
//编码
// 维度编码,用于程序内部识别
Code string `db:"code" json:"code" check:"des" min:"1" max:"50" index:"true" field_list:"true"`
//名称
Name string `db:"name" json:"name" check:"des" min:"1" max:"300" empty:"true" field_search:"true" field_list:"true"`
//描述
Des string `db:"des" json:"des" check:"des" min:"0" max:"500" empty:"true" field_search:"true"`
//约定Extend字段名称
// 约定指标、指标值
// 例如:extend1
ExtendIndex string `db:"extend_index" json:"extendIndex" index:"true"`
//所属表名称
TableName string `db:"table_name" json:"tableName" check:"des" min:"1" max:"50"`
//字段名称
FieldName string `db:"field_name" json:"fieldName" check:"des" min:"1" max:"50"`
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/fotomxq/weeekj_core.git
git@gitee.com:fotomxq/weeekj_core.git
fotomxq
weeekj_core
weeekj_core
v5.4.21

Search