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