POST api/PromotionAttendance/CreatePromotionAttendance?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
CreatePromotionAttendanceDto| Name | Description | Type | Additional information |
|---|---|---|---|
| LNG | string |
None. |
|
| LAT | string |
None. |
|
| Location | string |
None. |
|
| Remark | string |
None. |
|
| CustomerID | globally unique identifier |
None. |
|
| CustomerName | string |
None. |
|
| PromotionFlightID | string |
None. |
|
| AttendanceCMID | string |
None. |
|
| AttendanceType | integer |
None. |
|
| DutyKey | string |
None. |
|
| ActiveType | string |
None. |
|
| BrandKey | string |
None. |
|
| PromotionProductKey | string |
None. |
|
| FaceValidated | integer |
None. |
|
| FaceValidatedScore | decimal number |
None. |
|
| Province | string |
None. |
|
| City | string |
None. |
|
| District | string |
None. |
|
| Town | string |
None. |
|
| PicUrls | Collection of string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PicUrls": [
"sample string 1",
"sample string 2"
],
"LNG": "sample string 1",
"LAT": "sample string 2",
"Location": "sample string 3",
"Remark": "sample string 4",
"CustomerID": "106e07df-e0c2-4871-95f2-c69da7c26e83",
"CustomerName": "sample string 6",
"PromotionFlightID": "sample string 7",
"AttendanceCMID": "sample string 8",
"AttendanceType": 1,
"DutyKey": "sample string 9",
"ActiveType": "sample string 10",
"BrandKey": "sample string 11",
"PromotionProductKey": "sample string 12",
"FaceValidated": 1,
"FaceValidatedScore": 1.0,
"Province": "sample string 13",
"City": "sample string 14",
"District": "sample string 15",
"Town": "sample string 16"
}
application/xml, text/xml
Sample:
<CreatePromotionAttendanceDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/JT.VSFA.Entity.DTO">
<ActiveType>sample string 10</ActiveType>
<AttendanceCMID>sample string 8</AttendanceCMID>
<AttendanceType>1</AttendanceType>
<BrandKey>sample string 11</BrandKey>
<City>sample string 14</City>
<CustomerID>106e07df-e0c2-4871-95f2-c69da7c26e83</CustomerID>
<CustomerName>sample string 6</CustomerName>
<District>sample string 15</District>
<DutyKey>sample string 9</DutyKey>
<FaceValidated>1</FaceValidated>
<FaceValidatedScore>1</FaceValidatedScore>
<LAT>sample string 2</LAT>
<LNG>sample string 1</LNG>
<Location>sample string 3</Location>
<PicUrls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>sample string 1</d2p1:string>
<d2p1:string>sample string 2</d2p1:string>
</PicUrls>
<PromotionFlightID>sample string 7</PromotionFlightID>
<PromotionProductKey>sample string 12</PromotionProductKey>
<Province>sample string 13</Province>
<Remark>sample string 4</Remark>
<Town>sample string 16</Town>
</CreatePromotionAttendanceDto>
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>