POST api/DriverRequest
司机请款申请
Request Information
URI Parameters
None.
Body Parameters
司机请款信息
DriverRequestDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
标识ID |
integer |
None. |
| DriverId |
司机ID |
integer |
None. |
| DispatcherId |
调度id |
integer |
None. |
| DispatcherName |
调度员(代理申请人) |
string |
None. |
| PaymentRequestNo |
申请单号 |
string |
None. |
| DriverName |
司机(实际申请人) |
string |
None. |
| BorrowDate |
借款日期 |
date |
None. |
| State |
状态 |
string |
None. |
| PayDate |
扣款日期 |
date |
None. |
| Amount |
金额(前端给值) |
decimal number |
None. |
| UseDescription |
借款事由(前端给值) |
string |
None. |
| AttachmentId | integer |
None. |
|
| AttachmentUrl |
附件 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"DriverId": 2,
"DispatcherId": 3,
"DispatcherName": "sample string 4",
"PaymentRequestNo": "sample string 5",
"DriverName": "sample string 6",
"BorrowDate": "2026-03-31 21:47:53",
"State": "sample string 8",
"PayDate": "2026-03-31 21:47:53",
"Amount": 9.0,
"UseDescription": "sample string 10",
"AttachmentId": 11,
"AttachmentUrl": "sample string 12"
}
application/xml, text/xml
Sample:
<DriverRequestDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto"> <Amount>9</Amount> <AttachmentId>11</AttachmentId> <AttachmentUrl>sample string 12</AttachmentUrl> <BorrowDate>2026-03-31T21:47:53.0308479+08:00</BorrowDate> <DispatcherId>3</DispatcherId> <DispatcherName>sample string 4</DispatcherName> <DriverId>2</DriverId> <DriverName>sample string 6</DriverName> <Id>1</Id> <PayDate>2026-03-31T21:47:53.0308479+08:00</PayDate> <PaymentRequestNo>sample string 5</PaymentRequestNo> <State>sample string 8</State> <UseDescription>sample string 10</UseDescription> </DriverRequestDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
InfoResultOfDriverRequestDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | DriverRequestDto |
None. |
|
| IsSuccess |
是否成功:true:成功,false:失败 |
boolean |
None. |
| Msg |
返回消息 |
string |
None. |
| Extra |
特定信息 |
string |
None. |
| Code |
内部代码:[成功 000000|失败 000001|未登陆/未授权 000002] |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": {
"Id": 1,
"DriverId": 2,
"DispatcherId": 3,
"DispatcherName": "sample string 4",
"PaymentRequestNo": "sample string 5",
"DriverName": "sample string 6",
"BorrowDate": "2026-03-31 21:47:53",
"State": "sample string 8",
"PayDate": "2026-03-31 21:47:53",
"Amount": 9.0,
"UseDescription": "sample string 10",
"AttachmentId": 11,
"AttachmentUrl": "sample string 12"
},
"IsSuccess": true,
"Msg": "sample string 2",
"Extra": "sample string 3",
"Code": "sample string 4"
}
application/xml, text/xml
Sample:
<InfoResultOfDriverRequestDto8taVmWcU xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Core.ShareData">
<Code>sample string 4</Code>
<Extra>sample string 3</Extra>
<IsSuccess>true</IsSuccess>
<Msg>sample string 2</Msg>
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto">
<d2p1:Amount>9</d2p1:Amount>
<d2p1:AttachmentId>11</d2p1:AttachmentId>
<d2p1:AttachmentUrl>sample string 12</d2p1:AttachmentUrl>
<d2p1:BorrowDate>2026-03-31T21:47:53.0308479+08:00</d2p1:BorrowDate>
<d2p1:DispatcherId>3</d2p1:DispatcherId>
<d2p1:DispatcherName>sample string 4</d2p1:DispatcherName>
<d2p1:DriverId>2</d2p1:DriverId>
<d2p1:DriverName>sample string 6</d2p1:DriverName>
<d2p1:Id>1</d2p1:Id>
<d2p1:PayDate>2026-03-31T21:47:53.0308479+08:00</d2p1:PayDate>
<d2p1:PaymentRequestNo>sample string 5</d2p1:PaymentRequestNo>
<d2p1:State>sample string 8</d2p1:State>
<d2p1:UseDescription>sample string 10</d2p1:UseDescription>
</Data>
</InfoResultOfDriverRequestDto8taVmWcU>