1 Star 0 Fork 0

my_go / model

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
auth.go 1.10 KB
一键复制 编辑 原始数据 按行查看 历史
写意 提交于 2022-07-04 15:31 . first commit
package model
/*
菜单权限表
*/
type MenuAuth struct {
BaseHeaderModel
Name string `gorm:"type:varchar(32);default:'';comment:权限名称"`
Icon string `gorm:"type:varchar(50);default:'';comment:图标"`
Pid int64 `gorm:"type:int(4);default:0;comment:父级Id"`
Controller string `gorm:"type:varchar(32);default:'';comment:控制器名称"`
Action string `gorm:"type:varchar(32);default:'';comment:方法名名称"`
Params string `gorm:"type:varchar(128);default:'';comment:参数"`
FontFamily string `gorm:"type:varchar(20);default:'';comment:字体"`
Spreed int64 `gorm:"type:tinyint(1);default:0;comment:spreed"`
IsCheck int64 `gorm:"type:tinyint(1);default:0;comment:是否选中"`
IsMenu int64 `gorm:"type:tinyint(1);default:1;comment:是否菜单"`
Path string `gorm:"type:varchar(64);default:'';comment:路径"`
Sorts int64 `gorm:"type:int(2);default:0;comment:排序"`
Status int64 `gorm:"type:tinyint(1);default:1;comment:状态 1可用 2 不可用"`
BaseFooterModel
}
func (u *MenuAuth) TableName() string {
return "admin_menu_auth"
}
1
https://gitee.com/my_go/model.git
git@gitee.com:my_go/model.git
my_go
model
model
master

搜索帮助