POST api/MallCommodity/AdminCreateCommodity
后台--商品创建
Request Information
URI Parameters
None.
Body Parameters
商品信息
CommodityCreateDtoName | Description | Type | Additional information |
---|---|---|---|
Id |
好店商品id |
integer |
None. |
Chrtitle |
商品标题 |
string |
None. |
Shopid |
好店id |
integer |
None. |
Chrimage |
封面 |
string |
None. |
Chrcontent |
商品内容 |
string |
None. |
Typeid |
商品类型 |
CommodityType |
None. |
RobBuyPrice |
抢购价 |
decimal number |
None. |
StartDate |
销售开始时间 |
date |
None. |
EndDate |
销售结束时间 |
date |
None. |
Intorder |
商品排序,不传或者传0 表示取现在商品最大的排序值+1 |
integer |
None. |
IsRemote |
是否有远程附件 |
boolean |
None. |
WriteOffStartDate |
核销开始时间 |
date |
None. |
WriteOffEndDate |
核销结束时间 |
date |
None. |
TransverseImage |
横板封面 |
string |
None. |
IsLimit |
是否限制只有超级会员购买 |
boolean |
None. |
SubPrice |
超级会员每份立减价格 |
decimal number |
None. |
ShopSettlementPrice |
好店结算价 |
decimal number |
None. |
ShopStock |
商家库存 |
integer |
None. |
LimitNum |
限购份数 |
integer |
None. |
Address |
自提地址,填写为空时,使用商家地址 |
string |
None. |
IsShowTime |
是否显示抢购剩余时间 |
boolean |
None. |
IsShelf |
商品是否上架 |
boolean |
None. |
MarketPrice |
市场价 |
decimal number |
None. |
DistributionPrice |
分销提成金额,0表示不加入分销 |
decimal number |
None. |
RegionId |
区域id ,根据地段id转接 |
integer |
None. |
SectionId |
地段id |
integer |
None. |
Views |
浏览量 |
integer |
None. |
ClassId |
商品一级分类id |
integer |
None. |
CategoryId |
商品分类 |
integer |
None. |
NeedCredit |
是否需要积分奖励 |
boolean |
None. |
CreditPerNum |
每份商品积分数 |
integer |
None. |
RefundType |
退款类型 |
CommodityRefundType |
None. |
VirtualSales |
虚拟销售份数 |
integer |
None. |
BuyComment |
购买须知(编辑时传入) |
string |
None. |
IsSinglePrice |
是否单价格 |
boolean |
None. |
MultiPriceDtos |
多价格系统内容 |
Collection of CommodityMultiPriceDto |
None. |
IsHideGShopInfo |
是否隐藏商品商家信息 默认false |
boolean |
None. |
ShopStockCount |
不同格式下的库存总量 |
integer |
None. |
IsAuditing |
是否审核 |
boolean |
None. |
WriteoffCodeGenerate |
核销码生成方式 |
WriteoffCodeGenerateType |
None. |
Request Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
application/xml, text/xml
Sample:
<CommodityCreateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Mh.Mall.Service.Dto.Commodity"> <Address>sample string 19</Address> <BuyComment>sample string 32</BuyComment> <CategoryId>28</CategoryId> <Chrcontent>sample string 5</Chrcontent> <Chrimage>sample string 4</Chrimage> <Chrtitle>sample string 2</Chrtitle> <ClassId>27</ClassId> <CreditPerNum>30</CreditPerNum> <DistributionPrice>23.1</DistributionPrice> <EndDate>2024-09-21T09:09:02.6152634+08:00</EndDate> <Id>1</Id> <Intorder>9</Intorder> <IsAuditing>true</IsAuditing> <IsHideGShopInfo>true</IsHideGShopInfo> <IsLimit>true</IsLimit> <IsRemote>true</IsRemote> <IsShelf>true</IsShelf> <IsShowTime>true</IsShowTime> <IsSinglePrice>true</IsSinglePrice> <LimitNum>18</LimitNum> <MarketPrice>22.1</MarketPrice> <MultiPriceDtos> <CommodityMultiPriceDto> <CommodityId>2</CommodityId> <DistributionPrice>9.1</DistributionPrice> <Id>1</Id> <MarketPrice>8.1</MarketPrice> <MultiPriceName>sample string 3</MultiPriceName> <RobBuyPrice>4.1</RobBuyPrice> <ShopSettlementPrice>6.1</ShopSettlementPrice> <ShopStock>7</ShopStock> <SubPrice>5.1</SubPrice> </CommodityMultiPriceDto> <CommodityMultiPriceDto> <CommodityId>2</CommodityId> <DistributionPrice>9.1</DistributionPrice> <Id>1</Id> <MarketPrice>8.1</MarketPrice> <MultiPriceName>sample string 3</MultiPriceName> <RobBuyPrice>4.1</RobBuyPrice> <ShopSettlementPrice>6.1</ShopSettlementPrice> <ShopStock>7</ShopStock> <SubPrice>5.1</SubPrice> </CommodityMultiPriceDto> </MultiPriceDtos> <NeedCredit>true</NeedCredit> <RefundType>NoRefund</RefundType> <RegionId>24</RegionId> <RobBuyPrice>6.1</RobBuyPrice> <SectionId>25</SectionId> <ShopSettlementPrice>16.1</ShopSettlementPrice> <ShopStock>17</ShopStock> <ShopStockCount>35</ShopStockCount> <Shopid>3</Shopid> <StartDate>2024-09-21T09:09:02.6152634+08:00</StartDate> <SubPrice>15.1</SubPrice> <TransverseImage>sample string 13</TransverseImage> <Typeid>ShopToShop</Typeid> <Views>26</Views> <VirtualSales>31</VirtualSales> <WriteOffEndDate>2024-09-21T09:09:02.6152634+08:00</WriteOffEndDate> <WriteOffStartDate>2024-09-21T09:09:02.6152634+08:00</WriteOffStartDate> <WriteoffCodeGenerate>OneOrderOneCode</WriteoffCodeGenerate> </CommodityCreateDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
后台--商品创建
ObjectNone.
Response Formats
application/json
Sample:
Sample not available.
text/json
Sample:
Sample not available.
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/" />