添加服务
开发中
POST
adminapi/goods.goods/add
请求参数
Body 参数application/json
name
string
服务名称
category_id
integer
分类id
goods_image
array[string]
视频轮播图
price
string
价格
scribing_price
string
划线价
status
integer
状态
duration
integer
时长
overtime_price
integer
加时价格
tags
string
标签
overtime_duration
integer
加时时长
appoint_start_time
string
预约开始时间
appoint_end_time
string
预约结束时间
commission_ratio
string
技师佣金
shop_ratio
string
服务佣金
virtual_order_num
string
虚拟销量
skill_id
array[integer]
技能id(多选)
content
string
详情
city_id
array[integer]
城市id(多选)
示例
{
"name":"泰式SPA1",
"category_id":2,
"goods_image":[
"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png"
],
"price":"200",
"scribing_price":"240",
"status":1,
"duration":120,
"overtime_price":120,
"overtime_duration":60,
"appoint_start_time":"10:00",
"appoint_end_time":"22:00",
"skill_id":[1,2],
"city_id":[2,3]
}
示例代码
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/goods.goods/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"泰式SPA1",
"category_id":2,
"goods_image":[
"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png"
],
"price":"200",
"scribing_price":"240",
"status":1,
"duration":120,
"overtime_price":120,
"overtime_duration":60,
"appoint_start_time":"10:00",
"appoint_end_time":"22:00",
"skill_id":[1,2],
"city_id":[2,3]
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
array [object {2}]
必需
id
integer
可选
name
string
可选
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": [
{
"id": 1,
"name": "广州市"
}
]
}
修改于 2024-11-04 03:42:57