This commit is contained in:
苏尹岚
2020-09-26 16:12:35 +08:00
parent d6e2c8e405
commit f3117c6d38

View File

@@ -210,3 +210,37 @@ func (v *UserMember) TableIndex() [][]string {
[]string{"CreateAt"},
}
}
type Role struct {
ModelIDCULD
Name string `json:"name"` //角色名
}
func (*Role) TableUnique() [][]string {
return [][]string{
[]string{"Name"},
}
}
type UserRole struct {
ModelIDCULD
Name string `json:"name"` //角色名
}
type Function struct {
ModelIDCULD
Name string `json:"name"` //功能名
URL string `orm:"column(url)" json:"url"` //路径
ImgURL string `orm:"column(img_url)" json:"imgURL"` //图标
Level int `json:"level"` //级别
ParentID int `orm:"column(parent_id)" json:"parentID"` //父功能ID
}
func (*Function) TableUnique() [][]string {
return [][]string{
[]string{"Name"},
}
}