POST api/LiZhi/AddLiZhi
添加一条离职申请
Request Information
URI Parameters
None.
Body Parameters
lizhiItemPost| Name | Description | Type | Additional information |
|---|---|---|---|
| cause | string |
None. |
|
| lizhiDt | string |
None. |
|
| shenpiId | integer |
None. |
|
| remarks | string |
None. |
|
| gongzuofu |
0:未还;1:已还。 |
integer |
None. |
| gongzuopai | integer |
None. |
|
| dianpushiwu | integer |
None. |
|
| gongzi |
0:未领,1:已领 |
integer |
None. |
| pandian |
0:未盘点,1:已盘点 |
integer |
None. |
| tel |
登录账号 |
string |
None. |
| token |
token |
string |
None. |
| uid | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"cause": "sample string 1",
"lizhiDt": "sample string 2",
"shenpiId": 3,
"remarks": "sample string 4",
"gongzuofu": 1,
"gongzuopai": 1,
"dianpushiwu": 1,
"gongzi": 1,
"pandian": 1,
"tel": "sample string 5",
"token": "sample string 6",
"uid": 1
}
application/xml, text/xml
Sample:
<lizhiItemPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers"> <tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 5</tel> <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 6</token> <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid> <cause>sample string 1</cause> <dianpushiwu>1</dianpushiwu> <gongzi>1</gongzi> <gongzuofu>1</gongzuofu> <gongzuopai>1</gongzuopai> <lizhiDt>sample string 2</lizhiDt> <pandian>1</pandian> <remarks>sample string 4</remarks> <shenpiId>3</shenpiId> </lizhiItemPost>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResult| Name | Description | Type | Additional information |
|---|---|---|---|
| code |
状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在... |
integer |
None. |
| msg |
成功或者错误的说明,例如:登录成功,token过期... |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"code": 1,
"msg": "sample string 2"
}
application/xml, text/xml
Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models"> <code>1</code> <msg>sample string 2</msg> </BaseResult>