Merge branch 'develop' of gitee.com:fusenpack/fusenapi into develop
This commit is contained in:
@@ -16,6 +16,29 @@ service ldap-admin {
|
||||
//保存部门信息
|
||||
@handler SaveDepartmentHandler
|
||||
post /api/ldap-admin/save_department(SaveDepartmentReq) 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);
|
||||
}
|
||||
|
||||
type GetApisReq {
|
||||
Sort string `form:"sort,optional"`
|
||||
CurrentPage int `form:"current_page,optional,default=1"`
|
||||
PerPage int `form:"per_page,optional,default=10"`
|
||||
}
|
||||
|
||||
type SaveApiReq {
|
||||
Id int64 `json:"id"`
|
||||
Method string `json:"method"`
|
||||
Path string `json:"path"`
|
||||
Category string `json:"category"`
|
||||
Remark string `json:"remark"`
|
||||
Creator string `json:"creator"`
|
||||
}
|
||||
|
||||
//获取部门列表
|
||||
|
||||
Reference in New Issue
Block a user