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", }