Commit 6af9b20c by lcx

修改接口描述

parent 73896ffa
...@@ -432,10 +432,20 @@ public ApiResponse Import([FromForm] IFormCollection form) ...@@ -432,10 +432,20 @@ public ApiResponse Import([FromForm] IFormCollection form)
/// <summary> /// <summary>
/// 自动获取人员信息 /// 自动获取人员信息
/// </summary> /// </summary>
/// <remarks>
/// Sample request:
///
/// POST /Todo
/// {
/// "allotid": 7,
/// "personnelnumber": "***************(用户输入信息)"
/// }
///
/// </remarks>
/// <param name="request"></param> /// <param name="request"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost("autocomplate")] [HttpPost("autocomplate")]
public ApiResponse<per_apr_amount> GetEmployeeMessage(per_apr_amount request) public ApiResponse<per_apr_amount> GetEmployeeMessage([FromBody] per_apr_amount request)
{ {
var result = employeeService.GetEmployeeMessage(request.AllotId, request.PersonnelNumber); var result = employeeService.GetEmployeeMessage(request.AllotId, request.PersonnelNumber);
return new ApiResponse<per_apr_amount>(ResponseType.OK, "", result); return new ApiResponse<per_apr_amount>(ResponseType.OK, "", result);
...@@ -447,7 +457,7 @@ public ApiResponse<per_apr_amount> GetEmployeeMessage(per_apr_amount request) ...@@ -447,7 +457,7 @@ public ApiResponse<per_apr_amount> GetEmployeeMessage(per_apr_amount request)
/// <param name="allotId"></param> /// <param name="allotId"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost("apr/perfortype/{allotId}")] [HttpPost("apr/perfortype/{allotId}")]
public ApiResponse<List<TitleValue>> GetPerforTypeDict(int allotId) public ApiResponse<List<TitleValue>> GetPerforTypeDict([FromRoute] int allotId)
{ {
var result = employeeService.GetPerforTypeDict(allotId); var result = employeeService.GetPerforTypeDict(allotId);
return new ApiResponse<List<TitleValue>>(ResponseType.OK, ""); return new ApiResponse<List<TitleValue>>(ResponseType.OK, "");
......
...@@ -751,6 +751,16 @@ ...@@ -751,6 +751,16 @@
<summary> <summary>
自动获取人员信息 自动获取人员信息
</summary> </summary>
<remarks>
Sample request:
POST /Todo
{
"allotid": 7,
"personnelnumber": "***************(用户输入信息)"
}
</remarks>
<param name="request"></param> <param name="request"></param>
<returns></returns> <returns></returns>
</member> </member>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment