12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- 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:"-"`
- Purview []*Purview `gorm:"ForeignKey:Parentid;AssociationForeignKey:ID" json:"sub_purview"`
- IconUrl string `gorm:"column:icon_url" json:"icon_url" form:"icon_url"`
- Desc string `gorm:"column:desc" json:"desc" form:"desc"`
- Link string `gorm:"-" json:"link"`
- Childs []*Purview `gorm:"-" json:"childs"`
- ParentUrl string `gorm:"column:parent_url" json:"parent_url" form:"parent_url"`
- }
-
- 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 `gorm:"column:purview_ids"`
- Status int8
- CreateTime int64 `gorm:"column:ctime"`
- ModifyTime int64 `gorm:"column:mtime"`
- Role Role `gorm:"ForeignKey:RoleId;AssociationForeignKey:ID" json:"role_info"`
- }
-
- func (RolePurview) TableName() string {
- return "sgj_user_role_purview"
- }
-
- type SgjUserOperatePurview struct {
- ID int64 `gorm:"column:id" json:"id" form:"id"`
- Module int64 `gorm:"column:module" json:"module" form:"module"`
- Name string `gorm:"column:name" json:"name" form:"name"`
- Urlfor string `gorm:"column:urlfor" json:"urlfor" form:"urlfor"`
- Parentid int64 `gorm:"column:parentid" json:"parentid" form:"parentid"`
- ErrorMsg string `gorm:"column:error_msg" json:"error_msg" form:"error_msg"`
- Status int64 `gorm:"column:status" json:"status" form:"status"`
- Ctime int64 `gorm:"column:ctime" json:"ctime" form:"ctime"`
- Mtime int64 `gorm:"column:mtime" json:"mtime" form:"mtime"`
- }
-
- func (SgjUserOperatePurview) TableName() string {
- return "sgj_user_operate_purview"
- }
|