项目目录优化,任务模块后端代码

This commit is contained in:
PandaGoAdmin
2021-12-23 17:23:27 +08:00
parent 0caf81660c
commit 21ff92a93c
67 changed files with 802 additions and 206 deletions

View File

@@ -0,0 +1,31 @@
package entity
import (
"pandax/base/casbin"
"pandax/base/model"
)
type SysRole struct {
RoleId int64 `json:"roleId" gorm:"primary_key;AUTO_INCREMENT"`
RoleName string `json:"roleName" gorm:"type:varchar(128);comment:角色名称"`
Status string `json:"status" gorm:"type:varchar(1);comment:状态"`
RoleKey string `json:"roleKey" gorm:"type:varchar(128);comment:角色代码"`
RoleSort int64 `json:"roleSort" gorm:"type:int(4);comment:角色排序"`
DataScope string `json:"dataScope" gorm:"type:varchar(1);comment:数据范围1全部数据权限 2自定数据权限 3本部门数据权限 4本部门及以下数据权限"`
Flag string `json:"flag" gorm:"type:varchar(128);comment:删除标识"`
CreateBy string `json:"createBy" gorm:"type:varchar(128);"`
UpdateBy string `json:"updateBy" gorm:"type:varchar(128);"`
Remark string `json:"remark" gorm:"type:varchar(255);"`
ApiIds []casbin.CasbinRule `json:"apiIds" gorm:"-"`
MenuIds []int64 `json:"menuIds" gorm:"-"`
DeptIds []int64 `json:"deptIds" gorm:"-"`
model.BaseModel
}
type MenuIdList struct {
MenuId int64 `json:"menuId"`
}
type DeptIdList struct {
DeptId int64 `json:"deptId"`
}