增加添加部门接口
This commit is contained in:
@@ -10,17 +10,14 @@ info (
|
||||
import "basic.api"
|
||||
|
||||
service ldap-admin {
|
||||
//获取部门列表
|
||||
@handler GetDepartmentsHandler
|
||||
get /api/ldap-admin/get_departments(request) 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);
|
||||
@@ -33,6 +30,18 @@ service ldap-admin {
|
||||
//获取菜单列表
|
||||
@handler GetMenusHandler
|
||||
get /api/ldap-admin/get_menus(GetMenusReq) returns (response);
|
||||
//获取ldap组织列表
|
||||
@handler GetDepartmentsHandler
|
||||
get /api/ldap-admin/get_departments(request) returns (response);
|
||||
//增加ldap组织
|
||||
@handler CreateLdapOrganizationHandler
|
||||
post /api/ldap-admin/create_ldap_orgination(CreateLdapOrganizationReq) returns (response);
|
||||
//删除ldap组织
|
||||
@handler DeleteLdapOrganizationHandler
|
||||
post /api/ldap-admin/delete_ldap_orgination(DeleteLdapOrganizationReq) returns (response);
|
||||
//修改组织
|
||||
@handler UpdateLdapOrganizationHandler
|
||||
post /api/ldap-admin/update_ldap_orgination(UpdateLdapOrganizationReq) returns (response);
|
||||
}
|
||||
|
||||
type GetApisReq {
|
||||
@@ -121,4 +130,19 @@ type MenuItem {
|
||||
Sort int64 `json:"sort"`
|
||||
ParentId int64 `json:"parent_id"`
|
||||
Status int64 `json:"status"`
|
||||
}
|
||||
//增加ldap组织
|
||||
type CreateLdapOrganizationReq {
|
||||
OrganizationOu string `json:"organization_ou"` //组织ou
|
||||
BusinessCategory string `json:"business_category"` //组织分类名称
|
||||
ParentOrganizationDN string `json:"parent_organization_dn"` //父级dn
|
||||
}
|
||||
//删除ldap组织
|
||||
type DeleteLdapOrganizationReq {
|
||||
OrganizationDN string `json:"organization_dn"` //组织dn
|
||||
}
|
||||
//修改ldap组织
|
||||
type UpdateLdapOrganizationReq {
|
||||
OrganizationDN string `json:"organization_dn"` //组织dn
|
||||
BusinessCategory string `json:"business_category"` //组织分类名称
|
||||
}
|
||||
Reference in New Issue
Block a user