Appearance
Provider list
GET
v1/ad/provider/list
Request
name | necessary | type | default | describe | ui |
---|---|---|---|---|---|
name | false | int | - | 机构名称(provider name) | |
status | false | int | - | 状态:0禁用,1正常(status: 0 disabled, 1 normal) |
Response data struct
name | necessary | type | default | describe | ui |
---|---|---|---|---|---|
code | true | int | - | 错误码(error code) | |
message | true | string | - | 错误信息(error message) | |
cause | true | string | - | 错误原因(error cause) | |
details | true | object | - | 详情(details) | |
-total_size | true | int | - | 总条数(total size) | |
-list | true | array | - | 列表(list) | |
--id | true | int | - | id(id) | |
--admin_id | true | int | - | 管理员id(admin id) | |
--provider_owner_id | true | int | - | 机构所有者id(provider owner id) | |
--provider_id | true | string | - | 机构id(provider id) | |
--status | true | int | - | 状态:0禁用,1正常,2未加入(status:0disabled,1normal,2not joined) | |
--created_at | true | string | - | 创建时间(creation time) | |
--updated_at | true | string | - | 更新时间(update time) | |
--provider_detail | true | object | - | 机构-详情(provider detail) | |
---id | true | int | - | id(id) | |
---provider_owner_id | true | int | - | 机构所有者id(provider owner id) | |
---provider_id | true | string | - | 机构id(provider id) | |
---logo | true | string | - | logo(logo) | |
---name | true | string | - | 机构名称(provider name) | |
true | string | - | 机构邮箱(provider email) | ||
---area_code | true | string | - | 国际区号(area code) | |
---phone | true | string | - | 手机号码(phone) | |
---country | true | string | - | 国家(country) | |
---state | true | string | - | 州(state) | |
---city | true | string | - | 城市(city) | |
---post_code | true | string | - | 邮编(post code) | |
---address | true | string | - | 机构地址(address) | |
---address_second | true | string | - | 机构地址第二行(address second) | |
---specialty_field | true | string | - | 专业领域(specialty field) | |
---tax_number | true | string | - | 税号(tax number) | |
---description | true | string | - | 描述(description) | |
---status | true | int | - | 状态:0禁用,1正常(status: 0 disabled, 1 normal) | |
---created_at | true | string | - | 创建时间(creation time) | |
---updated_at | true | string | - | 更新时间(update time | |
---provider_detail | true | object | - | 机构-详情(provider detail) | |
----id | true | int | - | id(id) | |
----provider_owner_id | true | int | - | 机构所有者id(provider owner id) | |
----provider_id | true | string | - | 机构id(provider id)) | |
----provider_member_num | int | string | - | 机构成员人数(provider member number) | |
----user_num | true | int | - | 患者人数(patient nunber) | |
----created_at | true | string | - | 创建时间(creation time) | |
----updated_at | true | string | - | 更新时间(update time) |
Example
- Header:
key | value |
---|---|
x-api-key | your's key value |
- Response body:
json
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"list": [
{
"id": 1,
"admin_id": 2,
"provider_owner_id": 2,
"provider_id": "20230216145524XLdMBFpy",
"status": 1,
"created_at": "2023-02-16T14:55:28+08:00",
"updated_at": "2023-02-16T14:55:28+08:00",
"provide": {
"id": 1,
"provider_owner_id": 2,
"provider_id": "20230216145524XLdMBFpy",
"logo": "",
"name": "test 1",
"email": "user@email.com",
"area_code": "+86",
"phone": "",
"country": "usa",
"state": "",
"city": "",
"post_code": "",
"address": "test address",
"address_second": "test address second",
"specialty_field": "sleep",
"tax_number": "122e44ds",
"description": "desc 1",
"status": 1,
"created_at": "2023-02-16T14:55:26+08:00",
"updated_at": "2023-02-16T16:12:17+08:00"
},
"provider_detail": {
"id": 1,
"provider_owner_id": 2,
"provider_id": "20230216145524XLdMBFpy",
"provider_member_num": 1,
"user_num": 0,
"created_at": "2023-02-16T14:55:27+08:00",
"updated_at": "2023-02-16T14:55:35+08:00"
}
}
],
"total_size": 1
}
}
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"list": [
{
"id": 1,
"admin_id": 2,
"provider_owner_id": 2,
"provider_id": "20230216145524XLdMBFpy",
"status": 1,
"created_at": "2023-02-16T14:55:28+08:00",
"updated_at": "2023-02-16T14:55:28+08:00",
"provide": {
"id": 1,
"provider_owner_id": 2,
"provider_id": "20230216145524XLdMBFpy",
"logo": "",
"name": "test 1",
"email": "user@email.com",
"area_code": "+86",
"phone": "",
"country": "usa",
"state": "",
"city": "",
"post_code": "",
"address": "test address",
"address_second": "test address second",
"specialty_field": "sleep",
"tax_number": "122e44ds",
"description": "desc 1",
"status": 1,
"created_at": "2023-02-16T14:55:26+08:00",
"updated_at": "2023-02-16T16:12:17+08:00"
},
"provider_detail": {
"id": 1,
"provider_owner_id": 2,
"provider_id": "20230216145524XLdMBFpy",
"provider_member_num": 1,
"user_num": 0,
"created_at": "2023-02-16T14:55:27+08:00",
"updated_at": "2023-02-16T14:55:35+08:00"
}
}
],
"total_size": 1
}
}