- 电商管理后台 API 接口文档
- 数据库设计
- 登录注册
- 用户管理
- 商品管理
- 商品分类管理
- 权限管理
- 角色管理
- 分类参数管理
- 图片上传
- 订单管理
- 数据统计
同步商品属性
开发中
PUT
https://m1.apifoxmock.com/m1/971845-0-defaultgoods/{id}/attributes
请求参数
Path 参数
id
string
必需
Body 参数application/x-www-form-urlencoded
attributes
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://m1.apifoxmock.com/m1/971845-0-defaultgoods//attributes'
返回响应
🟢200成功
application/json
Body
data
object
必需
goods_id
integer
必需
goods_name
string
必需
goods_price
integer
必需
goods_number
integer
必需
goods_weight
integer
必需
goods_introduce
null
必需
goods_big_logo
string
必需
goods_small_logo
string
必需
goods_state
integer
必需
is_del
string
必需
add_time
integer
必需
upd_time
integer
必需
delete_time
integer
必需
hot_mumber
integer
必需
is_promote
boolean
必需
pics
array [object {5}]
必需
attrs
array [object {8}]
必需
meta
object
必需
msg
string
必需
status
integer
必需
示例
{
"data": {
"goods_id": 96,
"goods_name": "iphoneXX",
"goods_price": 2,
"goods_number": 22,
"goods_weight": 22,
"goods_introduce": null,
"goods_big_logo": "./uploads/goods/20171113/483a3b8e99e534ec3e4312dbbaee7c9d.jpg",
"goods_small_logo": "./uploads/goods/20171113/small_483a3b8e99e534ec3e4312dbbaee7c9d.jpg",
"goods_state": 0,
"is_del": "1",
"add_time": 1510045904,
"upd_time": 1512635159,
"delete_time": 1512635159,
"hot_mumber": 0,
"is_promote": false,
"pics": [
{
"pics_id": 383,
"goods_id": 96,
"pics_big": "uploads/goodspics/big_6f5750132abd3f5b2b93dd722fcde653.jpg",
"pics_mid": "uploads/goodspics/mid_6f5750132abd3f5b2b93dd722fcde653.jpg",
"pics_sma": "uploads/goodspics/sma_6f5750132abd3f5b2b93dd722fcde653.jpg"
}
],
"attrs": [
{
"goods_id": 96,
"attr_id": 15,
"attr_value": "eee",
"add_price": null,
"attr_name": "fffffff",
"attr_sel": "many",
"attr_write": "list",
"attr_vals": ""
},
{
"goods_id": 96,
"attr_id": 15,
"attr_value": "ddd",
"add_price": null,
"attr_name": "fffffff",
"attr_sel": "many",
"attr_write": "list",
"attr_vals": ""
}
]
},
"meta": {
"msg": "更新成功",
"status": 200
}
}
修改于 2022-05-11 17:01:36