分页查询当前用户创建的店铺
基本信息
· Path: /queryEnv
· Method: POST
返回数据
| 字段 | 类型 | 示例值(成功 / 失败) | 说明 |
|---|---|---|---|
| method | string | "queryEnv" |
接口名称 |
| code | int | 成功:200失败: 401 |
状态码,200 表示请求成功,非 200 表示请求失败 |
| response.msg | string | 成功:"success"失败: "鉴权失败" |
返回提示信息 |
| response.total | int | 成功:13失败: 0 |
数据条数 |
| response.pageTotal | int | 成功:50失败: 0 |
总页数 |
| response.env | array | 成功:[{"id":1,"name":"测试1","status":"opened"}]失败: [{"id":2,"name":"测试2","status":"opened"}] |
店铺信息列表 |
成功返回示例
json
{
"method": "queryEnv",
"response": {
"code": 200,
"msg": "success",
"total": 123,
"page": 1,
"pageTotal": 50,
"envs": [
{ "id": 1, "name": "店铺1", "status": "opened" },
{ "id": 2, "name": "店铺2", "status": "opened" }
]
}
}
失败返回示例
json
{
"method": "queryEnv",
"code": 401,
"msg": "用户登录异常,需要重新登录"
}