POST new/customwork/addOrderForPost

缓存购物车订单信息

Request Information

URI Parameters

None.

Body Parameters

Collection of CommonModel
NameDescriptionTypeAdditional information
id

integer

None.

name

名称

string

None.

value

值

string

None.

type

类型

integer

None.

selectIds

选中项

Collection of integer

None.

isLogPublic

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "id": 1,
    "name": "sample string 2",
    "value": "sample string 3",
    "type": 4,
    "selectIds": [
      1,
      2
    ],
    "isLogPublic": true
  },
  {
    "id": 1,
    "name": "sample string 2",
    "value": "sample string 3",
    "type": 4,
    "selectIds": [
      1,
      2
    ],
    "isLogPublic": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfCommonModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Models.CustomWork">
  <CommonModel>
    <Id>1</Id>
    <IsLogPublic>true</IsLogPublic>
    <Name>sample string 2</Name>
    <SelectIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </SelectIds>
    <Type>4</Type>
    <Value>sample string 3</Value>
  </CommonModel>
  <CommonModel>
    <Id>1</Id>
    <IsLogPublic>true</IsLogPublic>
    <Name>sample string 2</Name>
    <SelectIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
      <d3p1:long>1</d3p1:long>
      <d3p1:long>2</d3p1:long>
    </SelectIds>
    <Type>4</Type>
    <Value>sample string 3</Value>
  </CommonModel>
</ArrayOfCommonModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

ApiDataResponse
NameDescriptionTypeAdditional information
Ok

接口是否成功。

boolean

None.

Data

返回数据。

Object

None.

Msg

返回消息。

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Ok": true,
  "Data": {},
  "Msg": "sample string 3"
}

application/xml, text/xml

Sample:
<ApiDataResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ma.Api.Controllers.Dtos">
  <Data />
  <Msg>sample string 3</Msg>
  <Ok>true</Ok>
</ApiDataResponse>