添加栏目
POST
/shop/column
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
createTime
string | null
创建时间
updateTime
string | null
更新时间
id
integer | null
可选
sort
integer | null
排序
name
string | null
栏目名称
delFlag
boolean | null
可选
示例
{
"createTime": "string",
"updateTime": "string",
"id": 0,
"sort": 0,
"name": "string",
"delFlag": 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 'http://localhost:81/shop/column' \
--header 'Content-Type: application/json' \
--data-raw '{
"createTime": "string",
"updateTime": "string",
"id": 0,
"sort": 0,
"name": "string",
"delFlag": true
}'
返回响应
🟢200成功
application/json
Body
code
integer | null
可选
msg
string | null
返回消息
data
boolean | null
返回数据
示例
{
"code": 0,
"msg": "",
"data": false
}