POST api/LeaveAttendance/SaveOfficeRecord?DomainId={DomainId}&AccountId={AccountId}&PersonId={PersonId}
保存公事申请
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| DomainId |
域Id |
globally unique identifier |
None. |
| AccountId |
账户Id |
globally unique identifier |
None. |
| PersonId |
人员Id |
globally unique identifier |
None. |
Body Parameters
OfficeInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| TID |
MS18TID |
globally unique identifier |
None. |
| OfficeTypeKey |
公事类型KEY |
string |
None. |
| StartDateTime |
公事开始时间 |
string |
None. |
| EndDateTime |
公事结束时间 |
string |
None. |
| Remark |
公事备注 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"TID": "3aac957a-aa20-4d5a-b524-7149553cbb0b",
"OfficeTypeKey": "sample string 1",
"StartDateTime": "sample string 2",
"EndDateTime": "sample string 3",
"Remark": "sample string 4"
}
application/xml, text/xml
Sample:
<OfficeInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.App.WebAPI.Areas.LeaveAttendance.ViewModel"> <EndDateTime>sample string 3</EndDateTime> <OfficeTypeKey>sample string 1</OfficeTypeKey> <Remark>sample string 4</Remark> <StartDateTime>sample string 2</StartDateTime> <TID>3aac957a-aa20-4d5a-b524-7149553cbb0b</TID> </OfficeInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModelOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Code | ReturnCode |
None. |
|
| Message | string |
None. |
|
| Data | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"Code": 200,
"Message": "sample string 1",
"Data": true
}
application/xml, text/xml
Sample:
<ResultModelOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Utility"> <Code>Success</Code> <Data>true</Data> <Message>sample string 1</Message> </ResultModelOfboolean>