diff --git a/base/data_list.go b/base/data_list.go index 67bfdce..caea555 100644 --- a/base/data_list.go +++ b/base/data_list.go @@ -37,6 +37,7 @@ type DataList struct { ApprovalConfig res_type.ResFieldByAnys `db:"approvalConfig"` // 审批设置 UniqueImportFields res_type.ResFieldByAnys `db:"uniqueImportFields"` // 导入字段唯一效验 Roles res_type.ResFieldByAnys `db:"roles"` // 列表权限 + IsAuthDB int `db:"is_auth_db"` // 启用权限过滤 UpdatedAt string `db:"updated_at"` CreatedAt string `db:"created_at"` } diff --git a/base/res_api.go b/base/res_api.go index 7c9a98d..745dfd8 100644 --- a/base/res_api.go +++ b/base/res_api.go @@ -15,6 +15,7 @@ type ResApi struct { Category string `db:"action"` Params res_type.ResFieldByAnys `db:"params"` Roles res_type.ResFieldByAnys `db:"roles"` + IsAuthDB int `db:"is_auth_db"` // 启用权限过滤 UpdatedAt string `db:"updated_at"` CreatedAt string `db:"created_at"` }