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

40 lines
1.2 KiB
Go

package entity
// Auth 权限因子
type Auth struct {
Id int `orm:"id" json:"id"`
AuthName string `orm:"auth_name" json:"authName"`
AuthUrl string `orm:"auth_url" json:"authUrl"`
UserId int `orm:"user_id" json:"userId"`
Pid int `orm:"pid" json:"pid"`
Sort int `orm:"sort" json:"sort"`
Icon string `orm:"icon" json:"icon"`
IsShow int `orm:"is_show" json:"isShow"`
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"`
}
// AuthCols 字段常量
var AuthCols = struct {
Id, AuthName, AuthUrl, UserId, Pid string
Sort, Icon, IsShow, Status string
CreateId, UpdateId, CreateTime, UpdateTime string
}{
Id: "id",
AuthName: "auth_name",
AuthUrl: "auth_url",
UserId: "user_id",
Pid: "pid",
Sort: "sort",
Icon: "icon",
IsShow: "is_show",
Status: "status",
CreateId: "create_id",
UpdateId: "update_id",
CreateTime: "create_time",
UpdateTime: "update_time",
}