[feat] 数据权限过滤支持

This commit is contained in:
what 2023-04-23 11:09:41 +08:00
parent 467d2f5d5b
commit ac3759b8e1
2 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,7 @@ type DataList struct {
ApprovalConfig res_type.ResFieldByAnys `db:"approvalConfig"` // 审批设置 ApprovalConfig res_type.ResFieldByAnys `db:"approvalConfig"` // 审批设置
UniqueImportFields res_type.ResFieldByAnys `db:"uniqueImportFields"` // 导入字段唯一效验 UniqueImportFields res_type.ResFieldByAnys `db:"uniqueImportFields"` // 导入字段唯一效验
Roles res_type.ResFieldByAnys `db:"roles"` // 列表权限 Roles res_type.ResFieldByAnys `db:"roles"` // 列表权限
IsAuthDB int `db:"is_auth_db"` // 启用权限过滤
UpdatedAt string `db:"updated_at"` UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"` CreatedAt string `db:"created_at"`
} }

View File

@ -15,6 +15,7 @@ type ResApi struct {
Category string `db:"action"` Category string `db:"action"`
Params res_type.ResFieldByAnys `db:"params"` Params res_type.ResFieldByAnys `db:"params"`
Roles res_type.ResFieldByAnys `db:"roles"` Roles res_type.ResFieldByAnys `db:"roles"`
IsAuthDB int `db:"is_auth_db"` // 启用权限过滤
UpdatedAt string `db:"updated_at"` UpdatedAt string `db:"updated_at"`
CreatedAt string `db:"created_at"` CreatedAt string `db:"created_at"`
} }