POST api/give/dogive

赠送操作 temp: type == 0 ? false : true, gid: _global.gid, sku: _global.sku, pronum: _global.pronum, type: _global.type, rcount: $("#rcount").val(), start: stime, end: etime

Request Information

URI Parameters

None.

Body Parameters

GiveCreateModel
NameDescriptionTypeAdditional information
uid

string

None.

pros

Collection of GiveProduct

None.

payType

integer

None.

rcount

规则数量

integer

None.

hidden

是否公开

boolean

None.

notes

string

None.

towns

乡镇编号

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "uid": "sample string 1",
  "pros": [
    {
      "sku": "sample string 1",
      "pronum": 2
    },
    {
      "sku": "sample string 1",
      "pronum": 2
    }
  ],
  "payType": 2,
  "rcount": 3,
  "hidden": true,
  "notes": "sample string 5",
  "towns": 6
}

application/xml, text/xml

Sample:
<GiveCreateModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Waiter.Mall.Apis.Models.Give">
  <hidden>true</hidden>
  <notes>sample string 5</notes>
  <payType>2</payType>
  <pros>
    <GiveProduct>
      <pronum>2</pronum>
      <sku>sample string 1</sku>
    </GiveProduct>
    <GiveProduct>
      <pronum>2</pronum>
      <sku>sample string 1</sku>
    </GiveProduct>
  </pros>
  <rcount>3</rcount>
  <towns>6</towns>
  <uid>sample string 1</uid>
</GiveCreateModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.