添加技师
开发中
POST
adminapi/coach.coach/add
请求参数
Body 参数application/json
coach_user_id
integer
账号id
name
string
名称
age
integer
年龄
gender
integer
性别:1-男;2-女
mobile
string
联系电话
id_card
integer
身份证
education
string
学历
nation
string
民族
province_id
integer
省份id
city_id
integer
城市id
address_detail
string
详情地址
skill_id
integer
技能id
goods_ids
array[integer]
服务id
id_card_back
string
身份证人像照
id_card_front
string
国辉照
portrait_shooting
string
人像照
work_photo
string
工作照
certification
string
资格证
health_certificate
string
健康证
work_status
integer
工作状态
server_status
integer
服务状态
life_photo
array[string]
生活照
示例
{
"coach_user_id":1,
"name":"测试",
"age":22,
"gender":1,
"mobile":"13172323123",
"id_card":445121199708062616,
"education":"高中",
"nation":"汉族",
"province_id":440000,
"city_id":440100,
"region_id":440106,
"address_detail":"林和西路100号",
"skill_id":1,
"goods_ids":[11,12],
"id_card_back":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"id_card_front":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"portrait_shooting":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"work_photo":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"work_status":1,
"server_status":1,
"life_photo":[
"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png"
]
}
示例代码
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/coach.coach/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"coach_user_id":1,
"name":"测试",
"age":22,
"gender":1,
"mobile":"13172323123",
"id_card":445121199708062616,
"education":"高中",
"nation":"汉族",
"province_id":440000,
"city_id":440100,
"region_id":440106,
"address_detail":"林和西路100号",
"skill_id":1,
"goods_ids":[11,12],
"id_card_back":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"id_card_front":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"portrait_shooting":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"work_photo":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"work_status":1,
"server_status":1,
"life_photo":[
"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png"
]
}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
show
integer
必需
msg
string
必需
data
object
必需
lists
array [object {11}]
必需
count
integer
必需
page_no
integer
必需
page_size
integer
必需
extend
array[string]
必需
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": []
}
修改于 2024-10-06 09:56:37