Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
performance
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zry
performance
Commits
6af9b20c
Commit
6af9b20c
authored
Dec 04, 2020
by
lcx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改接口描述
parent
73896ffa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
performance/Performance.Api/Controllers/EmployeeController.cs
+12
-2
performance/Performance.Api/wwwroot/Performance.Api.xml
+10
-0
No files found.
performance/Performance.Api/Controllers/EmployeeController.cs
View file @
6af9b20c
...
...
@@ -432,10 +432,20 @@ public ApiResponse Import([FromForm] IFormCollection form)
/// <summary>
/// 自动获取人员信息
/// </summary>
/// <remarks>
/// Sample request:
///
/// POST /Todo
/// {
/// "allotid": 7,
/// "personnelnumber": "***************(用户输入信息)"
/// }
///
/// </remarks>
/// <param name="request"></param>
/// <returns></returns>
[
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
);
return
new
ApiResponse
<
per_apr_amount
>(
ResponseType
.
OK
,
""
,
result
);
...
...
@@ -447,7 +457,7 @@ public ApiResponse<per_apr_amount> GetEmployeeMessage(per_apr_amount request)
/// <param name="allotId"></param>
/// <returns></returns>
[
HttpPost
(
"apr/perfortype/{allotId}"
)]
public
ApiResponse
<
List
<
TitleValue
>>
GetPerforTypeDict
(
int
allotId
)
public
ApiResponse
<
List
<
TitleValue
>>
GetPerforTypeDict
(
[
FromRoute
]
int
allotId
)
{
var
result
=
employeeService
.
GetPerforTypeDict
(
allotId
);
return
new
ApiResponse
<
List
<
TitleValue
>>(
ResponseType
.
OK
,
""
);
...
...
performance/Performance.Api/wwwroot/Performance.Api.xml
View file @
6af9b20c
...
...
@@ -751,6 +751,16 @@
<summary>
自动获取人员信息
</summary>
<remarks>
Sample request:
POST /Todo
{
"allotid": 7,
"personnelnumber": "***************(用户输入信息)"
}
</remarks>
<param
name=
"request"
></param>
<returns></returns>
</member>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment