- 后台接口
- 客服
- 消息列表
- 客服会话
- im配置
- 会员等级
- 会员消息管理
- 会员企业认证
- 会员管理
- 会员留言
- 订单配置
- 配送类型
- 运费模板
- 地区管理
- 消息分类
- 邮箱模板管理
- 配送方式配置信息
- 许可证
- 相册图片管理
- 相册管理
- 友情链接
- 配置管理
- 区号管理
- 库存日志
- 分销商品
- 分销业绩订单结算
- 分销员分组
- 分销内容管理
- 分销模式设置
- 素材分类
- 微信直播
- 限时折扣
- 积分签到
- 限时秒杀
- 充值余额
- 营销管理
- 满减活动
- 活动赠品
- 积分商品
- 优惠券
- 商品服务
- 商品分组
- 商品
- 商品属性模板
- 电子卡券组
- 电子卡券
- 评价管理
- 商品分类
- 品牌
- 订单商品
- 订单管理
- 售后管理
- 管理员消息
- 商家账户表
- 店铺商品分类表
- 店铺表
- 商家表
- 入驻申请
- 商户账户
- 登录控制器
- 翻译管理
- 语言关联
- 语言列表
- 货币管理
- 提现申请
- 充值记录
- 发票资质
- 退款记录
- 退款申请
- 交易日志
- 发票申请
- 示例
- 首页分类栏
- 售后申请表
- 装修组件
- 页面管理
- 文章分类
- 文章
- 供应商管理
- 权限
- 管理员列表
- 角色
- 文件访问控制器
- 会员积分日志
- 访问统计控制器
- 销售统计控制器
- 面板控制器
- 店铺资金变化
- 账户总览
- 管理员日志
- 店铺员工管理
- 店铺订单配置
- 视频相册信息后台管理接口
- 视频相册后台管理接口
- 商品询价
- 客户端接口
更新商品
POST
/adminapi/product/product/update
商品
请求参数
Body 参数application/json
商品更新参数
productType
integer <int32>
商品类型
productStock
integer <int32>
商品库存
<= 99999
freeShipping
integer <int32>
商品是否包邮
shopCategoryId
integer <int32>
商品店铺分类ID
productStatus
integer <int32>
产品状态
giveIntegral
integer <int32>
赠送积分
rankIntegral
integer <int32>
排名积分
integral
integer <int32>
积分
productWeight
number
产品重量
productDescArr
array[object (ProductDescDTO) {3}]
产品描述数组
type
string
类型
pic
string
图片
html
string
内容
productRelated
array[integer <int32>]
相关产品
serviceList
array[object (ServicesDTO) {7}]
服务列表
productServiceId
integer <int32>
服务id
productServiceName
string
服务名称
>= 0 字符<= 100 字符
productServiceDesc
string
服务描述
icoImg
string
服务图标
sortOrder
integer <int32>
排序
defaultOn
integer <int32>
默认开启
shopId
integer <int32>
店铺id
productId
integer <int32>
产品ID
productName
string
产品名称
>= 0 字符<= 100 字符
productSn
string
产品编号
productTsn
string
产品条形码
productPrice
number
商品价格
marketPrice
number
市场价(划线价)
costPrice
number
成本价
shippingTplId
integer <int64>
运费模板ID
categoryId
integer <int32>
分类ID
brandId
integer <int32>
品牌ID
shopId
integer <int32>
店铺ID
keywords
string
关键词
checkStatus
integer <int32>
审核状态
checkReason
string
审核原因
clickCount
integer <int32>
点击次数
isPromote
boolean
是否促销
isPromoteActivity
boolean
是否参与促销活动
promotePrice
number
促销价格
promoteStartDate
string
促销开始日期
promoteEndDate
string
促销结束日期
seckillMaxNum
integer <int32>
秒杀最大数量
productBrief
string
产品简介
productDesc
string
产品描述
picUrl
string
图片URL
picThumb
string
缩略图URL
picOriginal
string
原图URL
commentTag
string
评论标签
addTime
string
添加时间
sortOrder
integer <int32>
排序顺序
storeSortOrder
integer <int32>
店铺排序顺序
isDelete
integer <int32>
是否删除
isBest
integer <int32>
是否精品
isNew
integer <int32>
是否新品
isHot
integer <int32>
是否热销
lastUpdate
string
最后更新时间
remark
string
备注
suppliersId
integer <int32>
供应商ID
virtualSales
integer <int32>
虚拟销量
limitNumber
integer <int32>
限购数量
productCare
string
关注产品
productServiceIds
array[integer <int32>]
产品服务ID列表
isSupportReturn
integer <int32>
是否支持退货
isSupportCod
integer <int32>
是否支持货到付款
productVideo
string
产品视频
prepayPrice
number
预付价格
cardGroupId
integer <int32>
卡组ID
virtualSample
string
虚拟样品
paidContent
array [object]
付费内容
noShipping
integer <int32>
可选
imgList
array[object (GalleryPic) {8}]
图片列表
picId
integer <int32>
主键
shopId
integer <int32>
店铺id
galleryId
integer <int32>
相册id
picOwerId
integer <int32>
操作人员id
picUrl
string
图片地址
picName
string
图片名称
picThumb
string
缩略图
addTime
string
添加时间
productVideoInfo
array[object (ProductVideo) {6}]
产品视频
id
integer <int32>
主键
videoId
integer <int32>
视频id
productId
integer <int32>
商品id
videoUrl
string
视频url
videoCover
string
视频封面
format
string
视频格式
productWeightByUnit
number
产品重量(单位)
productArticleList
array[integer <int32>]
产品文章列表
attrList
object (ProductAttrsDTO)
商品属性参数
normal
array[object (Attribute) {1}]
可选
spe
array[object (Attribute) {1}]
可选
extra
array[object (Attribute) {1}]
可选
productList
array[object (ProductListAttributeDTO) {13}]
产品列表
skuId
integer <int32>
规格ID
productId
integer <int32>
商品ID
skuValue
string
商品规格值
skuData
array[object (SkuData) {2}]
可选
skuSn
string
货品编码
skuStock
integer <int32>
货品库存
skuTsn
string
条形码
skuPrice
string
货品价格
marketPrice
number
市场价(划线价)
costPrice
number
成本价
attrNames
array[string]
属性名称
attrValues
array[string]
属性值
attrs
array[object (Attribute) {1}]
属性结构
errcode
integer <int32>
错误码
message
string
消息
suppliersList
array[object (Suppliers) {13}]
供应商列表
suppliersId
integer <int32>
供应商ID
suppliersName
string
供应商名称
suppliersDesc
string
供应商描述
isShow
integer <int32>
是否展示
isCheck
integer <int32>
是否启用
country
integer <int32>
省份
province
integer <int32>
市
city
integer <int32>
市
district
integer <int32>
区
contactName
string
联系人
contactPhone
string
联系电话
contactAddress
string
联系地址
shopId
integer <int32>
店铺id
shippingTplList
array[object (ShippingTpl) {7}]
运费模板列表
shippingTplId
integer <int64>
运费模板ID
shippingTime
string
配送时间
shippingTplName
string
模板名称
isFree
integer <int32>
是否包邮
pricingType
integer <int32>
1:件数,2:重量
isDefault
integer <int32>
是否默认
shopId
integer <int32>
店铺id
productInfo
string
产品信息
seoProductTitle
string
SEO标题
attrChanged
boolean
属性变更
cartId
integer <int32>
购物车id
skuId
integer <int32>
skuId
activityInfo
array[object (PromotionVO) {17}]
可选
promotionId
integer <int32>
活动ID
promotionName
string
活动名称
startTime
string
开始时间
endTime
string
结束 时间
type
integer <int32>
可选
shopId
integer <int32>
店铺ID
relationId
integer <int32>
活动对应的ID
range
integer <int32>
可选
rangeData
array[integer <int32>]
可选
skuIds
array[integer <int32>]
允许的SKU
isAvailable
integer <int32>
是否启用
isDelete
integer <int32>
是否删除
typeText
string
类型名称
data
object
活动内容
isReceive
integer <int32>
是否领取
amount
number
优惠价
timeText
string
时间格式
isChecked
boolean
可选
示例
{
"productType": 0,
"productStock": 99999,
"freeShipping": 0,
"shopCategoryId": 0,
"productStatus": 0,
"giveIntegral": 0,
"rankIntegral": 0,
"integral": 0,
"productWeight": 0,
"productDescArr": [
{
"type": "string",
"pic": "string",
"html": "string"
}
],
"productRelated": [
0
],
"serviceList": [
{
"productServiceId": 0,
"productServiceName": "string",
"productServiceDesc": "string",
"icoImg": "string",
"sortOrder": 0,
"defaultOn": 0,
"shopId": 0
}
],
"productId": 0,
"productName": "string",
"productSn": "string",
"productTsn": "string",
"productPrice": 0,
"marketPrice": 0,
"costPrice": 0,
"shippingTplId": 0,
"categoryId": 0,
"brandId": 0,
"shopId": 0,
"keywords": "string",
"checkStatus": 0,
"checkReason": "string",
"clickCount": 0,
"isPromote": true,
"isPromoteActivity": true,
"promotePrice": 0,
"promoteStartDate": "string",
"promoteEndDate": "string",
"seckillMaxNum": 0,
"productBrief": "string",
"productDesc": "string",
"picUrl": "string",
"picThumb": "string",
"picOriginal": "string",
"commentTag": "string",
"addTime": "string",
"sortOrder": 0,
"storeSortOrder": 0,
"isDelete": 0,
"isBest": 0,
"isNew": 0,
"isHot": 0,
"lastUpdate": "string",
"remark": "string",
"suppliersId": 0,
"virtualSales": 0,
"limitNumber": 0,
"productCare": "string",
"productServiceIds": [
0
],
"isSupportReturn": 0,
"isSupportCod": 0,
"productVideo": "string",
"prepayPrice": 0,
"cardGroupId": 0,
"virtualSample": "string",
"paidContent": [
{}
],
"noShipping": 0,
"imgList": [
{
"picId": 0,
"shopId": 0,
"galleryId": 0,
"picOwerId": 0,
"picUrl": "string",
"picName": "string",
"picThumb": "string",
"addTime": "string"
}
],
"productVideoInfo": [
{
"id": 0,
"videoId": 0,
"productId": 0,
"videoUrl": "string",
"videoCover": "string",
"format": "string"
}
],
"productWeightByUnit": 0,
"productArticleList": [
0
],
"attrList": {
"normal": [
{
"attrName": "string"
}
],
"spe": [
{
"attrName": "string"
}
],
"extra": [
{
"attrName": "string"
}
]
},
"productList": [
{
"skuId": 0,
"productId": 0,
"skuValue": "string",
"skuData": [
{
"name": "string",
"value": "string"
}
],
"skuSn": "string",
"skuStock": 0,
"skuTsn": "string",
"skuPrice": "string",
"marketPrice": 0,
"costPrice": 0,
"attrNames": [
"string"
],
"attrValues": [
"string"
],
"attrs": [
{
"attrName": "string"
}
]
}
],
"errcode": 0,
"message": "string",
"suppliersList": [
{
"suppliersId": 0,
"suppliersName": "string",
"suppliersDesc": "string",
"isShow": 0,
"isCheck": 0,
"country": 0,
"province": 0,
"city": 0,
"district": 0,
"contactName": "string",
"contactPhone": "string",
"contactAddress": "string",
"shopId": 0
}
],
"shippingTplList": [
{
"shippingTplId": 0,
"shippingTime": "string",
"shippingTplName": "string",
"isFree": 0,
"pricingType": 0,
"isDefault": 0,
"shopId": 0
}
],
"productInfo": "string",
"seoProductTitle": "string",
"attrChanged": true,
"cartId": 0,
"skuId": 0,
"activityInfo": [
{
"promotionId": 0,
"promotionName": "string",
"startTime": "string",
"endTime": "string",
"type": 0,
"shopId": 0,
"relationId": 0,
"range": 0,
"rangeData": [
0
],
"skuIds": [
0
],
"isAvailable": 0,
"isDelete": 0,
"typeText": "string",
"data": {
"property1": {},
"property2": {}
},
"isReceive": 0,
"amount": 0,
"timeText": "string"
}
],
"isChecked": true
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/adminapi/product/product/update' \
--header 'Content-Type: application/json' \
--data-raw '{
"productType": 0,
"productStock": 99999,
"freeShipping": 0,
"shopCategoryId": 0,
"productStatus": 0,
"giveIntegral": 0,
"rankIntegral": 0,
"integral": 0,
"productWeight": 0,
"productDescArr": [
{
"type": "string",
"pic": "string",
"html": "string"
}
],
"productRelated": [
0
],
"serviceList": [
{
"productServiceId": 0,
"productServiceName": "string",
"productServiceDesc": "string",
"icoImg": "string",
"sortOrder": 0,
"defaultOn": 0,
"shopId": 0
}
],
"productId": 0,
"productName": "string",
"productSn": "string",
"productTsn": "string",
"productPrice": 0,
"marketPrice": 0,
"costPrice": 0,
"shippingTplId": 0,
"categoryId": 0,
"brandId": 0,
"shopId": 0,
"keywords": "string",
"checkStatus": 0,
"checkReason": "string",
"clickCount": 0,
"isPromote": true,
"isPromoteActivity": true,
"promotePrice": 0,
"promoteStartDate": "string",
"promoteEndDate": "string",
"seckillMaxNum": 0,
"productBrief": "string",
"productDesc": "string",
"picUrl": "string",
"picThumb": "string",
"picOriginal": "string",
"commentTag": "string",
"addTime": "string",
"sortOrder": 0,
"storeSortOrder": 0,
"isDelete": 0,
"isBest": 0,
"isNew": 0,
"isHot": 0,
"lastUpdate": "string",
"remark": "string",
"suppliersId": 0,
"virtualSales": 0,
"limitNumber": 0,
"productCare": "string",
"productServiceIds": [
0
],
"isSupportReturn": 0,
"isSupportCod": 0,
"productVideo": "string",
"prepayPrice": 0,
"cardGroupId": 0,
"virtualSample": "string",
"paidContent": [
{}
],
"noShipping": 0,
"imgList": [
{
"picId": 0,
"shopId": 0,
"galleryId": 0,
"picOwerId": 0,
"picUrl": "string",
"picName": "string",
"picThumb": "string",
"addTime": "string"
}
],
"productVideoInfo": [
{
"id": 0,
"videoId": 0,
"productId": 0,
"videoUrl": "string",
"videoCover": "string",
"format": "string"
}
],
"productWeightByUnit": 0,
"productArticleList": [
0
],
"attrList": {
"normal": [
{
"attrName": "string"
}
],
"spe": [
{
"attrName": "string"
}
],
"extra": [
{
"attrName": "string"
}
]
},
"productList": [
{
"skuId": 0,
"productId": 0,
"skuValue": "string",
"skuData": [
{
"name": "string",
"value": "string"
}
],
"skuSn": "string",
"skuStock": 0,
"skuTsn": "string",
"skuPrice": "string",
"marketPrice": 0,
"costPrice": 0,
"attrNames": [
"string"
],
"attrValues": [
"string"
],
"attrs": [
{
"attrName": "string"
}
]
}
],
"errcode": 0,
"message": "string",
"suppliersList": [
{
"suppliersId": 0,
"suppliersName": "string",
"suppliersDesc": "string",
"isShow": 0,
"isCheck": 0,
"country": 0,
"province": 0,
"city": 0,
"district": 0,
"contactName": "string",
"contactPhone": "string",
"contactAddress": "string",
"shopId": 0
}
],
"shippingTplList": [
{
"shippingTplId": 0,
"shippingTime": "string",
"shippingTplName": "string",
"isFree": 0,
"pricingType": 0,
"isDefault": 0,
"shopId": 0
}
],
"productInfo": "string",
"seoProductTitle": "string",
"attrChanged": true,
"cartId": 0,
"skuId": 0,
"activityInfo": [
{
"promotionId": 0,
"promotionName": "string",
"startTime": "string",
"endTime": "string",
"type": 0,
"shopId": 0,
"relationId": 0,
"range": 0,
"rangeData": [
0
],
"skuIds": [
0
],
"isAvailable": 0,
"isDelete": 0,
"typeText": "string",
"data": {
"property1": {},
"property2": {}
},
"isReceive": 0,
"amount": 0,
"timeText": "string"
}
],
"isChecked": true
}'
返回响应
🟢200成功
该响应没有 Body