POST HYAPI/AssistantService/WxExtension/addVehicle?url={url}
新增材料车辆
服务请求信息
URI 参数
| Name | Description | Type | Additional information |
|---|---|---|---|
| url | string |
Required |
Body 参数
VehicleDriverModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Vehicle | VehicleInformationBaseModel |
None. |
|
| Driver | DriverInformationBaseModel |
None. |
Request Formats
application/json, text/json
Sample:
{"Vehicle":{"vehicle_num":"sample string 1","self_num":"sample string 2","driver_id":"sample string 3","capacity":4.0,"type":"sample string 5","category":"sample string 6","vehicle_owner":"sample string 7","vehicle_weight":8.0,"remark":"sample string 9","surplus_qty":10.0,"extensions":{"System.Object":{},"System.Object":{}}},"Driver":{"checking_in_num":"sample string 1","name":"sample string 2","tel1":"sample string 3","tel2":"sample string 4","team":"sample string 5","remark":"sample string 6","driver_id_card":"sample string 7","driving_license":"sample string 8","driver_address":"sample string 9","regular":true,"enabled":true,"extensions":{"System.Object":{},"System.Object":{}}}}
application/xml, text/xml
Sample:
<VehicleDriverModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model.ERP">
<Driver>
<checking_in_num>sample string 1</checking_in_num>
<driver_address>sample string 9</driver_address>
<driver_id_card>sample string 7</driver_id_card>
<driving_license>sample string 8</driving_license>
<enabled>true</enabled>
<extensions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfanyTypeanyType>
<d3p1:Key />
<d3p1:Value />
</d3p1:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType>
<d3p1:Key />
<d3p1:Value />
</d3p1:KeyValueOfanyTypeanyType>
</extensions>
<name>sample string 2</name>
<regular>true</regular>
<remark>sample string 6</remark>
<team>sample string 5</team>
<tel1>sample string 3</tel1>
<tel2>sample string 4</tel2>
</Driver>
<Vehicle>
<capacity>4</capacity>
<category>sample string 6</category>
<driver_id>sample string 3</driver_id>
<extensions xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfanyTypeanyType>
<d3p1:Key />
<d3p1:Value />
</d3p1:KeyValueOfanyTypeanyType>
<d3p1:KeyValueOfanyTypeanyType>
<d3p1:Key />
<d3p1:Value />
</d3p1:KeyValueOfanyTypeanyType>
</extensions>
<remark>sample string 9</remark>
<self_num>sample string 2</self_num>
<surplus_qty>10</surplus_qty>
<type>sample string 5</type>
<vehicle_num>sample string 1</vehicle_num>
<vehicle_owner>sample string 7</vehicle_owner>
<vehicle_weight>8</vehicle_weight>
</Vehicle>
</VehicleDriverModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
服务返回信息
返回数据说明
状态码
ResponseDataModelOfString| Name | Description | Type | Additional information |
|---|---|---|---|
| State |
返回消息状态 |
integer |
None. |
| Message |
操作信息 |
string |
None. |
| Data |
返回数据 |
string |
None. |
返回数据范例
application/json, text/json
Sample:
{
"State": 1,
"Message": "sample string 2",
"Data": "sample string 3"
}
application/xml, text/xml
Sample:
<ResponseDataModelOfstring xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Service.API.Model"> <Data>sample string 3</Data> <Message>sample string 2</Message> <State>1</State> </ResponseDataModelOfstring>