门店编辑
开发中
POST
aminapi/shop.shop/edit
请求参数
Body 参数application/json
name
string
名称
short_name
string
短名称
mobile
integer
联系电话
type
integer
类型:1-企业,2-个体工商户
social_credit_ode
string
信用代码
legal_person
string
法人
legal_id_card
string
身份证
shop_adress_detail
string
详情地址
longitude
string
经纬度
latitude
string
经纬度
category_ids
array[integer]
分类ids
goods_ids
array[integer]
服务ids
id_card_front
string
身份证正面
id_card_back
string
背面
portrait_shooting
string
人像
logo
string
logo
business_license
string
营业执照
work_status
integer
工作状态
server_status
integer
服务状态
shop_image
array[string]
必需
id
string
id
synopsis
string
简介
示例
{
"name":"广州海珠店12",
"short_name":"海珠店12",
"mobile":13171565123,
"type":1,
"social_credit_ode":"123",
"legal_person":"蔡哈哈",
"legal_id_card":"445121199708062616",
"shop_adress":"广东省广州市海珠区",
"shop_adress_detail":"广东省广州市海珠区123",
"longitude":"113.333444",
"latitude":"39.88568",
"category_ids":[2],
"goods_ids":[11,12],
"id_card_front":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"id_card_back":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"portrait_shooting":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"logo":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"business_license":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"work_status":1,
"server_status":1,
"shop_image":[
"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"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 'aminapi/shop.shop/edit' \
--header 'Content-Type: application/json' \
--data-raw '{
"name":"广州海珠店12",
"short_name":"海珠店12",
"mobile":13171565123,
"type":1,
"social_credit_ode":"123",
"legal_person":"蔡哈哈",
"legal_id_card":"445121199708062616",
"shop_adress":"广东省广州市海珠区",
"shop_adress_detail":"广东省广州市海珠区123",
"longitude":"113.333444",
"latitude":"39.88568",
"category_ids":[2],
"goods_ids":[11,12],
"id_card_front":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"id_card_back":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"portrait_shooting":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"logo":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"business_license":"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"work_status":1,
"server_status":1,
"shop_image":[
"http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"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 {41}]
必需
count
integer
必需
page_no
integer
必需
page_size
integer
必需
extend
array[string]
必需
示例
{
"code": 1,
"show": 0,
"msg": "",
"data": {
"lists": [
{
"id": 9,
"shop_user_id": 1,
"sn": "",
"name": "广州海珠店1",
"mobile": "",
"short_name": "海珠店1",
"type": 1,
"social_credit_ode": "123",
"legal_person": "蔡哈哈",
"legal_id_card": "445121199708062616",
"province_id": 440000,
"city_id": 440100,
"shop_adress_detail": "广东省广州市海珠区123",
"id_card_front": "http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"id_card_back": "http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"portrait_shooting": "http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"logo": "http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"business_license": "http://www.php-amdj.localhost/uploads/images/20221123/202211231543510f03d1199.png",
"synopsis": "",
"work_status": 1,
"server_status": 1,
"sort": 0,
"money": "800.00",
"deposit": "800.00",
"audit_status": 1,
"audit_remark": "",
"monday": 0,
"tuesday": 0,
"wednesday": 0,
"thursday": 0,
"friday": 0,
"saturday": 0,
"sunday": 0,
"good_comment": 0,
"business_start_time": "",
"business_end_time": "",
"create_time": "2024-10-03 14:04:58",
"work_status_desc": "营业中",
"server_status_desc": "正常"
}
],
"count": 1,
"page_no": 1,
"page_size": 25,
"extend": []
}
}
修改于 2024-11-11 15:51:22