POST api/JiFen/addJiFen

添加积分申请

Request Information

URI Parameters

None.

Body Parameters

addJiFenPost
NameDescriptionTypeAdditional information
count

多少积分

integer

None.

amount

消费金额

decimal number

None.

groupId

向哪个店铺申请的,必填

integer

None.

imgid

integer

None.

remarks

string

None.

openid

string

None.

token

token

string

None.

uid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "count": 1,
  "amount": 1.0,
  "groupId": 1,
  "imgid": 1,
  "remarks": "sample string 1",
  "openid": "sample string 2",
  "token": "sample string 3",
  "uid": 1
}

application/xml, text/xml

Sample:
<addJiFenPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <openid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 2</openid>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 3</token>
  <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
  <amount>1</amount>
  <count>1</count>
  <groupId>1</groupId>
  <imgid>1</imgid>
  <remarks>sample string 1</remarks>
</addJiFenPost>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

BaseResult
NameDescriptionTypeAdditional information
code

状态码,200成功,300错误,400缺少参数,500没有权限,301数据不存在...

integer

None.

msg

成功或者错误的说明,例如:登录成功,token过期...

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": 1,
  "msg": "sample string 2"
}

application/xml, text/xml

Sample:
<BaseResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">
  <code>1</code>
  <msg>sample string 2</msg>
</BaseResult>