POST api/MallCommodity/AdminUpdateCommodity
后台--商品更新
Request Information
URI Parameters
None.
Body Parameters
商品信息
CommodityCreateDto| Name | 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. |
| IsSupportCart |
是否支持加入购物车 |
boolean |
None. |
| IsMustPhone |
手机号是否必填 |
boolean |
None. |
| IsMustName |
姓名是否必填 |
boolean |
None. |
| IsMustCredentialNo |
身份证号是否必填 |
boolean |
None. |
| IsMallShopCheckPhone |
商家是否可以查看手机号 |
boolean |
None. |
| IsMallShopCheckName |
商家是否可以查看姓名 |
boolean |
None. |
| IsMallShopCheckCredentialNo |
商家是否可以查看身份证 |
boolean |
None. |
Request Formats
application/json
Sample:
text/json
Sample:
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>2025-12-15T16:49:14.3441874+08:00</EndDate>
<Id>1</Id>
<Intorder>9</Intorder>
<IsAuditing>true</IsAuditing>
<IsHideGShopInfo>true</IsHideGShopInfo>
<IsLimit>true</IsLimit>
<IsMallShopCheckCredentialNo>true</IsMallShopCheckCredentialNo>
<IsMallShopCheckName>true</IsMallShopCheckName>
<IsMallShopCheckPhone>true</IsMallShopCheckPhone>
<IsMustCredentialNo>true</IsMustCredentialNo>
<IsMustName>true</IsMustName>
<IsMustPhone>true</IsMustPhone>
<IsRemote>true</IsRemote>
<IsShelf>true</IsShelf>
<IsShowTime>true</IsShowTime>
<IsSinglePrice>true</IsSinglePrice>
<IsSupportCart>true</IsSupportCart>
<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>2025-12-15T16:49:14.3441874+08:00</StartDate>
<SubPrice>15.1</SubPrice>
<TransverseImage>sample string 13</TransverseImage>
<Typeid>ShopToShop</Typeid>
<Views>26</Views>
<VirtualSales>31</VirtualSales>
<WriteOffEndDate>2025-12-15T16:49:14.3441874+08:00</WriteOffEndDate>
<WriteOffStartDate>2025-12-15T16:49:14.3441874+08:00</WriteOffStartDate>
<WriteoffCodeGenerate>OneOrderOneCode</WriteoffCodeGenerate>
</CommodityCreateDto>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
后台--商品更新
ObjectNone.
Response Formats
application/json
Sample:
text/json
Sample:
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/" />