新增:权限分组模块

This commit is contained in:
momo
2023-11-17 15:21:45 +08:00
parent 6f14668342
commit 3900dffdbe
5 changed files with 116 additions and 0 deletions

View File

@@ -28,6 +28,10 @@ service ldap-admin {
@handler SetLdapCasbinRuleHandler
post /api/ldap-admin/set_ldap_casbin_rule(SetLdapCasbinRuleReq) returns (response);
//权限组授权用户
@handler SetLdapGroupUserHandler
post /api/ldap-admin/set_ldap_group_user(SetLdapGroupUserReq) returns (response);
//获取API列表
@handler GetApisHandler
get /api/ldap-admin/get_apis(GetApisReq) returns (response);
@@ -111,6 +115,11 @@ type (
GroupId int64 `json:"group_id"`
ApIds []int64 `json:"api_ids"`
}
SetLdapGroupUserReq {
GroupId int64 `json:"group_id"`
UserId int64 `json:"user_id"`
}
)
type GetApisReq {