POST api/UserCartInfo/Add
添加购物车信息
Request Information
URI Parameters
None.
Body Parameters
MallUserCartInfoMobDto| Name | Description | Type | Additional information |
|---|---|---|---|
| WareId |
仓库Id |
string |
None. |
| ProductId |
商品Id |
string |
None. |
| ProductNumber |
商品数量 |
integer |
None. |
| Remark |
备注 |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"WareId": "sample string 1",
"ProductId": "sample string 2",
"ProductNumber": 1,
"Remark": "sample string 3"
}
application/xml, text/xml
Sample:
<MallUserCartInfoMobDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMS.Domain.Dto"> <ProductId>sample string 2</ProductId> <ProductNumber>1</ProductNumber> <Remark>sample string 3</Remark> <WareId>sample string 1</WareId> </MallUserCartInfoMobDto>
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>