- 后台接口
- 后台::商品管理
- 后台::文章管理
- 后台::退单管理
- 后台::注册用户管理
- 后台::商品库存管理
- 后台::品牌管理
- 后台::分类管理
- 后台::广告管理
- 后台::地址模板管理
- 后台::仪表盘统计
- 后台::营销管理
- 后台::登录管理
- 后台::素材管理
- 后台::订单管理
- 客户端接口
- 客户端::收获地址管理
- 客户端::发现页模块
- 客户端::购物车模块
- 客户端::首页管理
- 客户端::用户登录模块
- 客户端::用户模块
- 客户端::订单模块
- 客户端::退单模块
- 客户端::商品展示
- 客户端::品牌管理
- 客户端::分类管理
- 客户端::微信开发者模块
- 后台权限
更新商品信息
POST
/lejuAdmin/product/updateProductAndSkus
后台::商品管理
请求参数
Body 参数application/json
pmsSkuStockList
array[object (PmsSkuStock对象) {13}]
可选
createTime
string <date-time>
创建时间
id
string
可选
lockStock
integer <int32>
锁定库存
lowStock
integer <int32>
预警库存
modifyTime
string <date-time>
更新时间
pic
string
展示图片
price
number
可选
productId
string
可选
promotionPrice
number
单品促销价格
sale
integer <int32>
销量
skuCode
string
sku编码
spData
string
可选
stock
integer <int32>
库存
product
object (PmsProduct对象)
商品信息
albumPics
string
可选
brandId
string
可选
brandName
string
品牌名称
createTime
string <date-time>
创建时间
deleteStatus
integer <int32>
可选
description
string
商品描述
detailDesc
string
可选
detailHtml
string
产品详情网页内容
detailMobileHtml
string
移动端网页详情
detailTitle
string
可选
feightTemplateId
string
邮寄模板
giftGrowth
integer <int32>
赠送的成长值
giftPoint
integer <int32>
赠送的积分
id
string
可选
keywords
string
关键词
lowStock
integer <int32>
库存预警值
modifyTime
string <date-time>
更新时间
name
string
可选
newStatus
integer <int32>
可选
note
string
备注
originalPrice
number
原价
pic
string
可选
previewStatus
integer <int32>
可选
price
number
当前价格
productAttributeCategoryId
string
产品属性分类
productCategoryId
string
可选
productCategoryName
string
商品分类名称
productSn
string
货号
promotionEndTime
string <date-time>
促销结束时间
promotionPerLimit
integer <int32>
活动限购数量
promotionPrice
number
可选
promotionStartTime
string <date-time>
促销开始时间
promotionType
integer <int32>
可选
publishStatus
integer <int32>
可选
recommendStatus
integer <int32>
可选
sale
integer <int32>
销量
serviceIds
string
可选
sort
integer <int32>
排序
stock
integer <int32>
库存
subTitle
string
副标题
unit
string
单位
usePointLimit
integer <int32>
限制使用的积分数
verifyStatus
integer <int32>
可选
weight
number
可选
示例
{
"pmsSkuStockList": [
{
"createTime": "2019-08-24T14:15:22Z",
"id": "string",
"lockStock": 0,
"lowStock": 0,
"modifyTime": "2019-08-24T14:15:22Z",
"pic": "string",
"price": 0,
"productId": "string",
"promotionPrice": 0,
"sale": 0,
"skuCode": "string",
"spData": "string",
"stock": 0
}
],
"product": {
"albumPics": "string",
"brandId": "string",
"brandName": "string",
"createTime": "2019-08-24T14:15:22Z",
"deleteStatus": 0,
"description": "string",
"detailDesc": "string",
"detailHtml": "string",
"detailMobileHtml": "string",
"detailTitle": "string",
"feightTemplateId": "string",
"giftGrowth": 0,
"giftPoint": 0,
"id": "string",
"keywords": "string",
"lowStock": 0,
"modifyTime": "2019-08-24T14:15:22Z",
"name": "string",
"newStatus": 0,
"note": "string",
"originalPrice": 0,
"pic": "string",
"previewStatus": 0,
"price": 0,
"productAttributeCategoryId": "string",
"productCategoryId": "string",
"productCategoryName": "string",
"productSn": "string",
"promotionEndTime": "2019-08-24T14:15:22Z",
"promotionPerLimit": 0,
"promotionPrice": 0,
"promotionStartTime": "2019-08-24T14:15:22Z",
"promotionType": 0,
"publishStatus": 0,
"recommendStatus": 0,
"sale": 0,
"serviceIds": "string",
"sort": 0,
"stock": 0,
"subTitle": "string",
"unit": "string",
"usePointLimit": 0,
"verifyStatus": 0,
"weight": 0
}
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://leju.bufan.cloud/lejuAdmin/product/updateProductAndSkus' \
--header 'Content-Type: application/json' \
--data-raw '{
"pmsSkuStockList": [
{
"createTime": "2019-08-24T14:15:22Z",
"id": "string",
"lockStock": 0,
"lowStock": 0,
"modifyTime": "2019-08-24T14:15:22Z",
"pic": "string",
"price": 0,
"productId": "string",
"promotionPrice": 0,
"sale": 0,
"skuCode": "string",
"spData": "string",
"stock": 0
}
],
"product": {
"albumPics": "string",
"brandId": "string",
"brandName": "string",
"createTime": "2019-08-24T14:15:22Z",
"deleteStatus": 0,
"description": "string",
"detailDesc": "string",
"detailHtml": "string",
"detailMobileHtml": "string",
"detailTitle": "string",
"feightTemplateId": "string",
"giftGrowth": 0,
"giftPoint": 0,
"id": "string",
"keywords": "string",
"lowStock": 0,
"modifyTime": "2019-08-24T14:15:22Z",
"name": "string",
"newStatus": 0,
"note": "string",
"originalPrice": 0,
"pic": "string",
"previewStatus": 0,
"price": 0,
"productAttributeCategoryId": "string",
"productCategoryId": "string",
"productCategoryName": "string",
"productSn": "string",
"promotionEndTime": "2019-08-24T14:15:22Z",
"promotionPerLimit": 0,
"promotionPrice": 0,
"promotionStartTime": "2019-08-24T14:15:22Z",
"promotionType": 0,
"publishStatus": 0,
"recommendStatus": 0,
"sale": 0,
"serviceIds": "string",
"sort": 0,
"stock": 0,
"subTitle": "string",
"unit": "string",
"usePointLimit": 0,
"verifyStatus": 0,
"weight": 0
}
}'
返回响应
🟢200OK
application/json
Body
code
integer <int32>
返回码
data
object
返回数据
message
string
返回信息
success
boolean
是否成功
示例值:
false
示例
{
"code": 0,
"data": {},
"message": "string",
"success": false
}
🟢201Created
🟠401Unauthorized
🟠403Forbidden
🟠404Not Found
修改于 2023-01-03 09:23:20