增加添加部门接口

This commit is contained in:
laodaming
2023-11-16 14:15:45 +08:00
parent def6990eba
commit 6fb16aa12c
5 changed files with 19 additions and 59 deletions

View File

@@ -31,8 +31,8 @@ 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);
@handler GetOrganizationsHandler
get /api/ldap-admin/get_organizations(request) returns (response);
//增加ldap组织
@handler CreateLdapOrganizationHandler
post /api/ldap-admin/create_ldap_orgination(CreateLdapOrganizationReq) returns (response);
@@ -58,28 +58,6 @@ type SaveApiReq {
Remark string `json:"remark"`
}
//获取部门列表
type GetDepartmentsRsp {
List []*DepartmentsItem `json:"list"`
}
type DepartmentsItem {
Id int64 `json:"id"`
Name string `json:"name"`
Remark string `json:"remark"`
Type string `json:"type"`
ParentId int64 `json:"parent_id"`
Dn string `json:"dn"`
SyncState int64 `json:"sync_state"`
Sort int64 `json:"sort"`
Child []*DepartmentsItem `json:"child"`
Members []Member `json:"members"`
}
type Member {
Id int64 `json:"id"`
Name string `json:"name"`
Nickname string `json:"nickname"`
Email string `json:"email"`
}
//保存菜单
type SaveMenuReq {
Id int64 `json:"id"`