1234567891011121314151617181920212223242526272829303132333435363738 |
- package models
-
- type Purview struct {
- Id int64 `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id"`
- Parentid int64 `json:"pid"`
- Module int8 `json:"module"`
- Name string `json:"name"`
- Urlfor string `json:"urlfor"`
- MenuIconClass string `gorm:"menu_icon_class" json:"menu_icon_class"`
- SuperAdminExclusive int8 `gorm:"super_admin_exclusive" json:"super_admin_exclusive"`
- Listorder int `json:"-"`
- Status int8 `json:"status"`
- CreateTime int64 `gorm:"column:ctime" json:"-"`
- ModifyTime int64 `gorm:"column:mtime" json:"-"`
-
- Link string `gorm:"-" json:"link"`
- Childs []*Purview `gorm:"-" json:"childs"`
- }
-
- func (Purview) TableName() string {
- return "sgj_user_purview"
- }
-
- type RolePurview struct {
- Id int64 `gorm:"PRIMARY_KEY;AUTO_INCREMENT"`
- RoleId int64
- OrgId int64
- AppId int64
- PurviewIds string
- Status int8
- CreateTime int64 `gorm:"column:ctime"`
- ModifyTime int64 `gorm:"column:mtime"`
- }
-
- func (RolePurview) TableName() string {
- return "sgj_user_role_purview"
- }
|