新增:权限分组模块

This commit is contained in:
momo
2023-11-17 14:53:28 +08:00
parent 93924f1f3d
commit 6f14668342
8 changed files with 262 additions and 0 deletions

View File

@@ -20,6 +20,14 @@ service ldap-admin {
@handler DeleteLdapGroupHandler
post /api/ldap-admin/delete_ldap_group(DeleteLdapGroupReq) returns (response);
//权限组授权菜单
@handler SetLdapGroupMenusHandler
post /api/ldap-admin/set_ldap_group_menus(SetLdapGroupMenusReq) returns (response);
//权限组授权接口
@handler SetLdapCasbinRuleHandler
post /api/ldap-admin/set_ldap_casbin_rule(SetLdapCasbinRuleReq) returns (response);
//获取API列表
@handler GetApisHandler
get /api/ldap-admin/get_apis(GetApisReq) returns (response);
@@ -95,6 +103,14 @@ type (
DeleteLdapGroupReq {
Id int64 `json:"id"` //id
}
SetLdapGroupMenusReq {
GroupId int64 `json:"group_id"`
MenuIds []int64 `json:"menu_ids"`
}
SetLdapCasbinRuleReq {
GroupId int64 `json:"group_id"`
ApIds []int64 `json:"api_ids"`
}
)
type GetApisReq {