查询空间
POST
/v1/shop/get请求参数
Body 参数application/json
company_id
string
公司ID
>= 1 字符<= 255 字符
shop_ids
array[string]
空间ID
空间ID为空时,默认获取公司下所有的空间,分页生效;空间ID不为空时,获取对应空间的信息,分页无效
page
integer
页(默认为1)
size
integer
个数(默认为100)
示例
{
"company_id": "string",
"shop_ids": [
"string"
],
"page": 0,
"size": 0
}
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
错误码
10000正常 ;非10000不正常
msg
string
返回信息
data
array [object {10}]
可选
company_id
string
必需
parent_tree_id
integer
父节点ID
父节点ID,根节点是 -1
shop_name
string
空间名称
shop_id
string
空间ID
shop_code
string
编号
type
integer
空间属性
2:自定义; 20:店铺; 30:楼层; 40:商场
region
object
地理位置
open_status
integer
空间状态
1开放;2关闭
business
array [object {2}]
开放时间
tree_id
integer
节点ID
自身节点ID
示例
{
"code": "10000",
"msg": "success",
"data": [
{
"company_id": "c53ac779-662f-4e2b-a63d-5fd351f0ef51",
"parent_tree_id": -1,
"tree_id": 6951,
"shop_id": "4326574318589981184",
"shop_name": "测试777",
"shop_code": "7777",
"type": 20,
"region": {
"province": "河北省",
"province_id": 13,
"city": "唐山市",
"city_id": 1302,
"district": "路北区",
"district_id": 130203,
"address": "果园镇翔云道新天地·鹭港",
"latitude": 39.645111,
"longitude": 118.130076
},
"open_status": 2,
"business": [
{
"start_time": 0,
"end_time": 1439
}
]
},
{
"company_id": "c53ac779-662f-4e2b-a63d-5fd351f0ef51",
"parent_tree_id": -1,
"tree_id": 5210,
"shop_id": "4324737164407768320",
"shop_name": "douding测试新协议用",
"type": 20,
"region": {
"province": "内蒙古自治区",
"province_id": 15,
"city": "通辽市",
"city_id": 1505,
"district": "库伦旗",
"district_id": 150524,
"address": "asd",
"latitude": 42.73504,
"longitude": 121.81073
},
"open_status": 1,
"business": [
{
"start_time": 124,
"end_time": 130
}
]
}
]
}
修改于 5 个月前