POST api/GoodsStandard/AddGoodsStandardType

标准分类新增或编辑

Request Information

URI Parameters

None.

Body Parameters

AddGoodsStandardTypeRequest
NameDescriptionTypeAdditional information
id

主键 新增传0或空

integer

None.

type_name

string

None.

type_status

状态:0-启用 1-禁用

integer

None.

is_entry

是否录入:0-否 1-是

integer

None.

is_need_img

是否需要上传图片:0-不需要 1-需要

integer

None.

user_id

当前登录者Id

string

None.

token

token

string

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "type_name": "sample string 2",
  "type_status": 3,
  "is_entry": 4,
  "is_need_img": 5,
  "user_id": "sample string 6",
  "token": "sample string 7"
}

application/xml, text/xml

Sample:
<AddGoodsStandardTypeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BBS.Model">
  <token>sample string 7</token>
  <user_id>sample string 6</user_id>
  <id>1</id>
  <is_entry>4</is_entry>
  <is_need_img>5</is_need_img>
  <type_name>sample string 2</type_name>
  <type_status>3</type_status>
</AddGoodsStandardTypeRequest>

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 'AddGoodsStandardTypeRequest'.

Response Information

Resource Description

标准分类新增或编辑

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.