添加分类
POST
/shop/category请求参数
Body 参数application/json
createTime
string | null
创建时间
updateTime
string | null
更新时间
id
integer | null
可选
name
string | null
类目名称
keywords
string | null
可选
类目关键字,以JSON数组格式
pid
integer | null
父类目ID
iconUrl
string | null
类目图标
picUrl
string | null
类目图片
level
string | null
可选
类目级别 L1 一级 L2 二级
sort
integer | null
排序
delFlag
boolean | null
可选
banner状态(0启用 1禁用)
remark
string | null
备注
示例
{
"createTime": "string",
"updateTime": "string",
"id": 0,
"name": "string",
"keywords": "string",
"pid": 0,
"iconUrl": "string",
"picUrl": "string",
"level": "string",
"sort": 0,
"delFlag": true,
"remark": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
integer | null
可选
返回状态码:返回200表示请求接口成功,非200表示请求接口失败
msg
string | null
返回消息
data
boolean | null
返回数据
示例
{
"code": 0,
"msg": "",
"data": false
}
最后修改时间: 10 个月前