Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
@@ -40,17 +40,17 @@ service ldap-admin {
|
||||
@handler GetMenusHandler
|
||||
get /api/ldap-admin/get_menus(GetMenusReq) returns (response);
|
||||
//获取ldap组织列表
|
||||
@handler GetLdapOrginationsHandler
|
||||
get /api/ldap-admin/get_ldap_orginations(request) returns (response);
|
||||
@handler GetLdapOrganizationsHandler
|
||||
get /api/ldap-admin/get_ldap_organizations(request) returns (response);
|
||||
//增加ldap组织
|
||||
@handler CreateLdapOrginationHandler
|
||||
post /api/ldap-admin/create_ldap_orgination(CreateLdapOrginationReq) returns (response);
|
||||
@handler CreateLdapOrganizationHandler
|
||||
post /api/ldap-admin/create_ldap_organization(CreateLdapOrganizationReq) returns (response);
|
||||
//删除ldap组织
|
||||
@handler DeleteLdapOrginationHandler
|
||||
post /api/ldap-admin/delete_ldap_orgination(DeleteLdapOrginationReq) returns (response);
|
||||
@handler DeleteLdapOrganizationHandler
|
||||
post /api/ldap-admin/delete_ldap_organization(DeleteLdapOrganizationReq) returns (response);
|
||||
//修改ldap组织
|
||||
@handler UpdateLdapOrginationHandler
|
||||
post /api/ldap-admin/update_ldap_orgination(UpdateLdapOrginationReq) returns (response);
|
||||
@handler UpdateLdapOrganizationHandler
|
||||
post /api/ldap-admin/update_ldap_organization(UpdateLdapOrganizationReq) returns (response);
|
||||
//添加ldap用户到员工基本组中
|
||||
@handler CreateLdapUserHandler
|
||||
post /api/ldap-admin/create_ldap_user(CreateLdapUserReq) returns (response);
|
||||
@@ -63,6 +63,12 @@ service ldap-admin {
|
||||
//获取ldap用户信息
|
||||
@handler GetLdapUserInfoHandler
|
||||
get /api/ldap-admin/get_ldap_user_info(GetLdapUserInfoReq) returns (response);
|
||||
//ldap组织添加成员
|
||||
@handler AddLdapOrganizationMemberHandler
|
||||
post /api/ldap-admin/add_ldap_organization_member(AddLdapOrganizationMemberReq) returns (response);
|
||||
//ldap组织移除成员
|
||||
@handler RemoveLdapOrganizationMemberHandler
|
||||
post /api/ldap-admin/remove_ldap_organization_member(RemoveLdapOrganizationMemberReq) returns (response);
|
||||
}
|
||||
type (
|
||||
GetLdapGroupsReq {}
|
||||
@@ -136,18 +142,18 @@ type MenuItem {
|
||||
Status int64 `json:"status"`
|
||||
}
|
||||
//增加ldap组织
|
||||
type CreateLdapOrginationReq {
|
||||
OrginationOu string `json:"orgination_ou"` //组织ou
|
||||
BusinessCategory string `json:"business_category"` //组织分类名称
|
||||
ParentOrginationDN string `json:"parent_orgination_dn"` //父级dn
|
||||
type CreateLdapOrganizationReq {
|
||||
OrganizationOu string `json:"organization_ou"` //组织ou
|
||||
BusinessCategory string `json:"business_category"` //组织分类名称
|
||||
ParentOrganizationDN string `json:"parent_organization_dn"` //父级dn
|
||||
}
|
||||
//删除ldap组织
|
||||
type DeleteLdapOrginationReq {
|
||||
OrginationDN string `json:"orgination_dn"` //组织dn
|
||||
type DeleteLdapOrganizationReq {
|
||||
OrganizationDN string `json:"organization_dn"` //组织dn
|
||||
}
|
||||
//修改ldap组织
|
||||
type UpdateLdapOrginationReq {
|
||||
OrginationDN string `json:"orgination_dn"` //组织dn
|
||||
type UpdateLdapOrganizationReq {
|
||||
OrganizationDN string `json:"organization_dn"` //组织dn
|
||||
BusinessCategory string `json:"business_category"` //组织分类名称
|
||||
}
|
||||
//添加ldap用户到员工基本组中
|
||||
@@ -184,4 +190,14 @@ type GetLdapUserInfoRsp {
|
||||
Mobile string `json:"mobile"` //手机号
|
||||
Avatar string `json:"avatar"` //头像地址
|
||||
Status int64 `json:"status,options=0|1"` //状态 1正常0离职
|
||||
}
|
||||
//ldap组织添加成员
|
||||
type AddLdapOrganizationMemberReq {
|
||||
OrganizationDN string `json:"organization_dn"` //目标组织DN
|
||||
UserDN string `json:"user_dn"` //用户DN
|
||||
}
|
||||
//ldap组织移除成员
|
||||
type RemoveLdapOrganizationMemberReq {
|
||||
OrganizationDN string `json:"organization_dn"` //目标组织DN
|
||||
UserDN string `json:"user_dn"` //用户DN
|
||||
}
|
||||
Reference in New Issue
Block a user