fix data scope
This commit is contained in:
1 parent
0906d49d09
commit
fdc4c52d68
1 file changed
+14
-14
+14
-14
@@ -6,20 +6,20 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
type SysRole struct {
|
type SysRole struct {
|
||||||
RoleId int `json:"roleId" gorm:"primary_key;AUTO_INCREMENT"` // 角色编码
|
RoleId int `json:"roleId" gorm:"primary_key;AUTO_INCREMENT"` // 角色编码
|
||||||
RoleName string `json:"roleName" gorm:"type:varchar(128);"` // 角色名称
|
RoleName string `json:"roleName" gorm:"type:varchar(128);"` // 角色名称
|
||||||
Status string `json:"status" gorm:"type:int(1);"` //
|
Status string `json:"status" gorm:"type:int(1);"` //
|
||||||
RoleKey string `json:"roleKey" gorm:"type:varchar(128);"` //角色代码
|
RoleKey string `json:"roleKey" gorm:"type:varchar(128);"` //角色代码
|
||||||
RoleSort int `json:"roleSort" gorm:"type:int(4);"` //角色排序
|
RoleSort int `json:"roleSort" gorm:"type:int(4);"` //角色排序
|
||||||
Flag string `json:"flag" gorm:"type:varchar(128);"` //
|
Flag string `json:"flag" gorm:"type:varchar(128);"` //
|
||||||
CreateBy string `json:"createBy" gorm:"type:varchar(128);"` //
|
CreateBy string `json:"createBy" gorm:"type:varchar(128);"` //
|
||||||
UpdateBy string `json:"updateBy" gorm:"type:varchar(128);"` //
|
UpdateBy string `json:"updateBy" gorm:"type:varchar(128);"` //
|
||||||
Remark string `json:"remark" gorm:"type:varchar(255);"` //备注
|
Remark string `json:"remark" gorm:"type:varchar(255);"` //备注
|
||||||
Admin bool `json:"admin" gorm:"type:char(1);"`
|
Admin bool `json:"admin" gorm:"type:char(1);"`
|
||||||
DataScope string `json:"dataScope" gorm:"-"`
|
DataScope string `json:"dataScope" gorm:"type:varchar(128);"`
|
||||||
Params string `json:"params" gorm:"-"`
|
Params string `json:"params" gorm:"-"`
|
||||||
MenuIds []int `json:"menuIds" gorm:"-"`
|
MenuIds []int `json:"menuIds" gorm:"-"`
|
||||||
DeptIds []int `json:"deptIds" gorm:"-"`
|
DeptIds []int `json:"deptIds" gorm:"-"`
|
||||||
BaseModel
|
BaseModel
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user