新增:权限分组模块
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user