Files
lmk 610b85e3a5 refactor: 从 Beego 迁移到 GoFrame v2
- 替换 Beego 框架为 GoFrame v2
- 重构项目结构: controller/service/dao/middleware 分层
- 替换自定义 crons 包为 gcron
- 模板从 views/ 迁移到 resource/template/
- 配置从 conf/app.conf 迁移到 config.yml
- 数据库从 MySQL 切换为 SQLite (modernc.org/sqlite)
- 移除 agent/ 远程执行器(待后续迁移)
- 移除 crons/ 自定义定时器包
- 静态资源整理到 resource/static/
2026-07-09 11:06:12 +08:00

36 lines
1.1 KiB
Go

package entity
// NotifyTpl 通知模板
type NotifyTpl struct {
Id int `orm:"id" json:"id"`
Type string `orm:"type" json:"type"`
TplName string `orm:"tpl_name" json:"tplName"`
TplType int `orm:"tpl_type" json:"tplType"`
Title string `orm:"title" json:"title"`
Content string `orm:"content" json:"content"`
Status int `orm:"status" json:"status"`
CreateId int `orm:"create_id" json:"createId"`
UpdateId int `orm:"update_id" json:"updateId"`
CreateTime int64 `orm:"create_time" json:"createTime"`
UpdateTime int64 `orm:"update_time" json:"updateTime"`
}
// NotifyTplCols 字段常量
var NotifyTplCols = struct {
Id, Type, TplName, TplType string
Title, Content, Status string
CreateId, UpdateId, CreateTime, UpdateTime string
}{
Id: "id",
Type: "type",
TplName: "tpl_name",
TplType: "tpl_type",
Title: "title",
Content: "content",
Status: "status",
CreateId: "create_id",
UpdateId: "update_id",
CreateTime: "create_time",
UpdateTime: "update_time",
}