POST api/DianPuRiChang/AddDianRong

添加一个店铺日常(包括店容店貌、店铺货品)

Request Information

URI Parameters

None.

Body Parameters

addDianRongPost
NameDescriptionTypeAdditional information
id

填写id 代表修改这条数据。不填写则代表新加一条

integer

None.

baokuan

string

None.

changxiaokuan

string

None.

zhixiaokuan

string

None.

duanmakuan

string

None.

zongjie

string

None.

tel

登录账号

string

None.

token

token

string

None.

uid

integer

None.

type

1:店容店貌,2:货品,100:其他

integer

None.

groupid

integer

None.

textDesc

string

None.

imgArr

数组: integer

None.

Request Formats

application/json, text/json

Sample:
{
  "type": 1,
  "groupid": 2,
  "textDesc": "sample string 3",
  "imgArr": [
    1,
    2
  ],
  "id": 1,
  "baokuan": "sample string 1",
  "changxiaokuan": "sample string 2",
  "zhixiaokuan": "sample string 3",
  "duanmakuan": "sample string 4",
  "zongjie": "sample string 5",
  "tel": "sample string 6",
  "token": "sample string 7",
  "uid": 1
}

application/xml, text/xml

Sample:
<addDianRongPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebApi.Controllers">
  <tel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 6</tel>
  <token xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">sample string 7</token>
  <uid xmlns="http://schemas.datacontract.org/2004/07/WebApi.Models">1</uid>
  <baokuan>sample string 1</baokuan>
  <changxiaokuan>sample string 2</changxiaokuan>
  <duanmakuan>sample string 4</duanmakuan>
  <groupid>2</groupid>
  <id>1</id>
  <imgArr xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </imgArr>
  <textDesc>sample string 3</textDesc>
  <type>1</type>
  <zhixiaokuan>sample string 3</zhixiaokuan>
  <zongjie>sample string 5</zongjie>
</addDianRongPost>

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>