POST api/Oil/UpdateOilStation
油站信息修改(业务端)
Request Information
URI Parameters
None.
Body Parameters
OilStationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id |
ID。自动生成。 |
integer |
None. |
| OilStationId |
油站Id |
integer |
None. |
| DetailedAddress |
详细地址。必填。输入。油站手机端添加 |
string |
None. |
| Note |
备注。输入。油站手机端添加 |
string |
None. |
| Picture |
图片。输入。油站手机端添加 |
string |
None. |
| Longitude |
经度。油站手机端添加 |
decimal number |
None. |
| Latitude |
纬度。油站手机端添加 |
decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"OilStationId": 1,
"DetailedAddress": "sample string 2",
"Note": "sample string 3",
"Picture": "sample string 4",
"Longitude": 1.0,
"Latitude": 1.0
}
application/xml, text/xml
Sample:
<OilStationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto"> <DetailedAddress>sample string 2</DetailedAddress> <Id>1</Id> <Latitude>1</Latitude> <Longitude>1</Longitude> <Note>sample string 3</Note> <OilStationId>1</OilStationId> <Picture>sample string 4</Picture> </OilStationDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
InfoResult| Name | Description | Type | Additional 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>