3 Star 2 Fork 1

fotomxq/weeekj_core

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fields_sql.go 1.92 KB
一键复制 编辑 原始数据 按行查看 历史
fotomxq 提交于 2024-12-14 16:08 +08:00 . 新增BD管理SQL模块;
package BaseDBManager
import "time"
type FieldsSQL 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"`
///////////////////////////////////////////////////////////////////////////////////////////////////
// 来源
// 如果存在值,尤其是带有FromCode时,应确保数据唯一性
///////////////////////////////////////////////////////////////////////////////////////////////////
//来源系统
// 例如: analysis
FromSystem string `db:"from_system" json:"fromSystem" index:"true" field_list:"true"`
//来源模块
// 例如: index_sql
FromModule string `db:"from_module" json:"fromModule" index:"true" field_list:"true"`
//内部标识码
// 可用于标记内部识别标识码,例如Index中的维度值,或一组维度值组合后的标识码
FromCode string `db:"from_code" json:"fromCode" index:"true" field_list:"true"`
///////////////////////////////////////////////////////////////////////////////////////////////////
// 基础设置
///////////////////////////////////////////////////////////////////////////////////////////////////
//定时器设置Carbon编码
// 例如: 15s
CarbonCode string `db:"carbon_code" json:"carbonCode" index:"true" field_list:"true"`
//开始运行时通知中间件地址
// 用于通知需发起该SQL,将SQL和来源信息传递给对应的中间件
PostURL string `db:"post_url" json:"postURL" index:"true" field_list:"true"`
///////////////////////////////////////////////////////////////////////////////////////////////////
// 数据
///////////////////////////////////////////////////////////////////////////////////////////////////
//SQL内容
SQLData string `db:"sql_data" json:"sqlData"`
}
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.12

搜索帮助