POST api/{area}/OEUser/SetAddress
新增、编辑地址
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| area | string |
None. |
Body Parameters
请求参数
AddressBindingModels| Name | Description | Type | Additional information |
|---|---|---|---|
| AddressId |
地址ID |
string |
None. |
| LinkMan |
联系人 |
string |
None. |
| Mobile |
手机号 |
string |
None. |
| AddressDetail |
地址 |
string |
None. |
| IsDefault |
是否默认 |
boolean |
None. |
| CityID |
城市id |
integer |
None. |
| PostCode |
邮编 |
string |
None. |
| AreaCode |
编号 |
string |
None. |
| Address |
详细地址 |
string |
None. |
| AddrDistrict |
所在地区 |
string |
None. |
| Id |
Id |
string |
None. |
| AccountId |
用户Id |
string |
None. |
| ShopId |
商城Id |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"AddressId": "sample string 1",
"LinkMan": "sample string 2",
"Mobile": "sample string 3",
"AddressDetail": "sample string 4",
"IsDefault": true,
"CityID": 6,
"PostCode": "sample string 7",
"AreaCode": "sample string 8",
"Address": "sample string 9",
"AddrDistrict": "sample string 10",
"Id": "sample string 11",
"AccountId": "sample string 12",
"ShopId": 13
}
application/xml, text/xml
Sample:
<AddressBindingModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Areas.OnlineEducation.Models"> <AccountId xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">sample string 12</AccountId> <Id xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">sample string 11</Id> <ShopId xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models">13</ShopId> <AddrDistrict>sample string 10</AddrDistrict> <Address>sample string 9</Address> <AddressDetail>sample string 4</AddressDetail> <AddressId>sample string 1</AddressId> <AreaCode>sample string 8</AreaCode> <CityID>6</CityID> <IsDefault>true</IsDefault> <LinkMan>sample string 2</LinkMan> <Mobile>sample string 3</Mobile> <PostCode>sample string 7</PostCode> </AddressBindingModels>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
BaseResultModels| Name | Description | Type | Additional information |
|---|---|---|---|
| errcode |
返回Code(-1请求失败,0请求成功,1调用支付) |
integer |
None. |
| errmsg |
返回提示消息 |
string |
None. |
| url |
返回Url |
string |
None. |
| data |
返回数据 |
string |
None. |
| dataObj |
返回数据1 |
Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"errcode": 1,
"errmsg": "sample string 2",
"url": "sample string 3",
"data": "sample string 4",
"dataObj": {}
}
application/xml, text/xml
Sample:
<BaseResultModels xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/open.wst.com.Models"> <data>sample string 4</data> <dataObj /> <errcode>1</errcode> <errmsg>sample string 2</errmsg> <url>sample string 3</url> </BaseResultModels>