POST api/DriverBorrow/SaveDriverBorrow

添加借款(小程序如果没有图片不能使用form提交)

Request Information

URI Parameters

None.

Body Parameters

DriverBorrowDto
NameDescriptionTypeAdditional information
Id

标识

integer

None.

Currency_Id

币种,与字典关联

integer

None.

Amount

支付金额

decimal number

None.

UseDescription

事由或品名(摘要)

string

None.

PayDate

支付日期

date

None.

RepaymentDate

预期还款日期

date

None.

DispatcherId

司机调度(指定审核人)

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Currency_Id": 2,
  "Amount": 3.0,
  "UseDescription": "sample string 4",
  "PayDate": "2026-03-31 21:47:01",
  "RepaymentDate": "2026-03-31 21:47:01",
  "DispatcherId": 6
}

application/xml, text/xml

Sample:
<DriverBorrowDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto">
  <Amount>3</Amount>
  <Currency_Id>2</Currency_Id>
  <DispatcherId>6</DispatcherId>
  <Id>1</Id>
  <PayDate>2026-03-31T21:47:01.3227764+08:00</PayDate>
  <RepaymentDate>2026-03-31T21:47:01.3227764+08:00</RepaymentDate>
  <UseDescription>sample string 4</UseDescription>
</DriverBorrowDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InfoResult
NameDescriptionTypeAdditional information
Data

Object

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": {},
  "IsSuccess": true,
  "Msg": "sample string 3",
  "Extra": "sample string 4",
  "Code": "sample string 5"
}

application/xml, text/xml

Sample:
<InfoResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Core.ShareData">
  <Code>sample string 5</Code>
  <Extra>sample string 4</Extra>
  <IsSuccess>true</IsSuccess>
  <Msg>sample string 3</Msg>
  <Data />
</InfoResult>