POST api/MallCommodity/CreateGShopCommodity

添加好店商品

Request Information

URI Parameters

None.

Body Parameters

CommodityGShopCreateDto
NameDescriptionTypeAdditional information
Typeid

商品类型

CommodityType

None.

Shopid

好店id

integer

None.

Address

自提地址,填写为空时,使用商家地址

string

None.

Chrtitle

商品标题

string

None.

Chrcontent

商品内容

string

None.

Chrimage

封面

string

None.

TransverseImage

横板封面

string

None.

ShopStock

商家库存

integer

None.

RobBuyPrice

抢购价

decimal number

None.

MarketPrice

市场价

decimal number

None.

ClassId

商品一级分类id

integer

None.

CategoryId

商品分类

integer

None.

IsRemote

是否有远程附件

boolean

None.

Request Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<CommodityGShopCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Mall.Service.Dto.Commodity">
  <Address>sample string 2</Address>
  <CategoryId>11</CategoryId>
  <Chrcontent>sample string 4</Chrcontent>
  <Chrimage>sample string 5</Chrimage>
  <Chrtitle>sample string 3</Chrtitle>
  <ClassId>10</ClassId>
  <IsRemote>true</IsRemote>
  <MarketPrice>9.1</MarketPrice>
  <RobBuyPrice>8.1</RobBuyPrice>
  <ShopStock>7</ShopStock>
  <Shopid>1</Shopid>
  <TransverseImage>sample string 6</TransverseImage>
  <Typeid>ShopToShop</Typeid>
</CommodityGShopCreateDto>

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

Response Information

Resource Description

添加好店商品

Object

None.

Response Formats

application/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'application/json'. Exception message: 无法访问已关闭的流。

text/json

Sample:

An exception has occurred while using the formatter 'JsonpMediaTypeFormatter' to generate sample for media type 'text/json'. Exception message: 无法访问已关闭的流。

application/xml, text/xml

Sample:
<z:anyType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" />