新增:权限分组模块
This commit is contained in:
@@ -19,11 +19,10 @@ 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);
|
||||
@@ -31,14 +30,13 @@ service ldap-admin {
|
||||
//权限组授权用户
|
||||
@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);
|
||||
//保存API
|
||||
@handler SaveApiHandler
|
||||
post /api/ldap-admin/save_api(SaveApiReq) returns (response);
|
||||
|
||||
|
||||
//保存菜单
|
||||
@handler SaveMenuHandler
|
||||
post /api/ldap-admin/save_menu(SaveMenuReq) returns (response);
|
||||
@@ -189,8 +187,8 @@ type MenuItem {
|
||||
}
|
||||
//增加ldap组织
|
||||
type CreateLdapOrganizationReq {
|
||||
OrganizationOu string `json:"organization_ou"` //组织ou
|
||||
BusinessCategory string `json:"business_category"` //组织分类名称
|
||||
OrganizationEnName string `json:"organization_en_name"` //组织英文名
|
||||
OrganizationName string `json:"organization_name"` //组织中文名称
|
||||
ParentOrganizationDN string `json:"parent_organization_dn"` //父级dn
|
||||
}
|
||||
//删除ldap组织
|
||||
@@ -249,5 +247,17 @@ type RemoveLdapOrganizationMemberReq {
|
||||
}
|
||||
//获取ldap组织成员列表
|
||||
type GetLdapOrganizationMembersReq {
|
||||
OrganizationDN string `json:"organization_dn"`
|
||||
OrganizationDN string `form:"organization_dn"`
|
||||
}
|
||||
type GetLdapOrganizationMembersRsp {
|
||||
List []GetLdapOrganizationMembersItem `json:"list"`
|
||||
}
|
||||
type GetLdapOrganizationMembersItem {
|
||||
UserId int64 `json:"userId"`
|
||||
UserDN string `json:"user_dn"`
|
||||
UserName string `json:"user_name"` //用户名
|
||||
Email string `json:"email"` //邮箱
|
||||
Mobile string `json:"mobile"` //手机号
|
||||
Avatar string `json:"avatar"` //头像地址
|
||||
Status int64 `json:"status,options=0|1"` //状态 1正常0离职
|
||||
}
|
||||
Reference in New Issue
Block a user