新增:权限分组模块

This commit is contained in:
momo 2023-11-17 10:34:13 +08:00
parent 62222bb781
commit 0c4f7847fc

View File

@ -10,10 +10,19 @@ info (
import "basic.api"
service ldap-admin {
//获取权限组列表
@handler GetLdapGroupsHandler
get /api/ldap-admin/get_ldap_group(GetLdapGroupsReq) returns (response);
//保存权限组
@handler SaveLdapGroupHandler
post /api/ldap-admin/save_ldap_group(SaveLdapGroupReq) returns (response);
//删除权限组
@handler DeleteLdapGroupHandler
post /api/ldap-admin/delete_ldap_group(DeleteLdapGroupReq) returns (response);
//获取API列表
@handler GetApisHandler
get /api/ldap-admin/get_apis(GetApisReq) returns (response);
//保存API
@handler SaveApiHandler
post /api/ldap-admin/save_api(SaveApiReq) returns (response);
@ -55,6 +64,11 @@ service ldap-admin {
@handler GetLdapUserInfoHandler
get /api/ldap-admin/get_ldap_user_info(GetLdapUserInfoReq) returns (response);
}
type (
GetLdapGroupsReq {}
SaveLdapGroupReq {}
DeleteLdapGroupReq {}
)
type GetApisReq {
Sort string `form:"sort,optional"`