Appearance
Provider user list
GET
v1/ad/provider/user/:provider_id/list
Request
name | necessary | type | default | describe |
---|---|---|---|---|
username | false | string | - | 账号(account) |
user_id | false | string | - | 用户id(user id) |
status | false | int | - | 状态:0未加入,1正常(status: 0 not joined, 1normal) |
Response data struct
name | necessary | type | default | describe |
---|---|---|---|---|
code | true | int | - | 错误码(error code) |
message | true | string | - | 错误信息(error message) |
cause | true | string | - | 错误原因(error cause) |
details | true | object | - | 详情(details) |
-list | true | array | - | 用户信息(user info) |
-user_id | true | int | - | 用户id(user id) |
-first_name | true | string | - | 名(first name) |
-last_name | true | string | - | 姓(last name) |
-full_name | true | string | - | 全名(full name) |
-avatar | true | string | - | 头像(avatar) |
-area_code | true | string | - | 国际区号(area code) |
-phone | true | string | - | 手机(phone) |
true | string | - | 邮箱(email) | |
-sex | true | int | - | 性别:1男,2女(sex:1 man, 2 woman) |
-birth | true | string | - | 出生日期(birth date) |
-height | true | int | - | 身高(height) |
-weight | true | int | - | 体重(weight) |
-is_virtual_user | true | bool | - | 是否是虚拟用户(Is it a virtual user) |
-is_batch_add | true | bool | - | 是否为批量添加(Whether to add in batches) |
status | false | int | - | 状态:0禁用,1正常,2未激活(status: 0 disabled, 1 normal,2inactivated) |
-is_complete_data | true | int | - | 是否完善资料:0为否,1为是(Whether the information is complete: 0 no, 1 yes) |
-created_at | true | datetime | - | 创建时间(creation time) |
-updated_at | true | datetime | - | 更新时间(update time) |
-user_detail | true | object | - | 用户-详情(user detail) |
--id | true | int | - | 用户详情id(user detail id) |
--user_id | true | int | - | 用户id(user id) |
--wear_day | true | int | - | 佩戴天数(wear day) |
--last_login_time | true | string | - | 最后登录时间(last login time) |
--last_data_sync_time | true | string | - | 最近数据同步时间(last data sync time) |
--created_at | true | string | - | 创建时间(creation time) |
--updated_at | true | string | - | 更新时间(update time) |
-final_status | true | int | - | 最终状态:0禁用,1正常,2未加入(final status: 0 disabled, 1 normal,2not join) |
-part_status | true | int | - | 局部状态:0未加入,1正常(status: 0 not joined, 1normal) |
-provider_member | true | object | - | 机构成员(provider member) |
--admin_id | true | int | - | 管理员id(admin id) |
--provider_owner_id | true | int | - | 机构所有者id(provider owner id) |
--avatar | true | string | - | 头像(avatar) |
--first_name | true | string | - | 名(first name) |
--last_name | true | string | - | 姓(last name) |
--full_name | true | string | - | 全名(full name) |
true | string | - | 邮箱(email) | |
--npi | true | string | - | 执照编号(License Number) |
--phone | true | string | - | 电话号码(phone) |
--area_code | true | string | - | 国际区号(area code) |
--sex | true | string | - | 性别:1男,2女(sex:1 man,2 woman) |
--role | true | string | - | 角色:1机构提供者,2机构管理员,3医生(role:1provider owner,2provider admin,3doctor) |
--status | true | string | - | 状态:0禁用,1正常,2未激活(status: 0 disabled, 1 normal,2inactivated) |
--description | true | string | - | 描述(description) |
--last_active_time | true | string | - | 最后活跃时间(last active time) |
--registered_at | true | string | - | 注册时间(registration time) |
--created_at | true | string | - | 创建时间(creation time) |
--updated_at | true | string | - | 更新时间(update time) |
Example
Url params:
v1/ad/provider/user/20221209093553w5DaBXtp/list
Header:
key | value |
---|---|
x-api-key | your's key value |
- Response body:
json
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"list": [
{
"user_id": 59,
"first_name": "",
"last_name": "",
"full_name": "",
"avatar": "",
"area_code": "",
"phone": "",
"email": "xxxx@qq.com",
"sex": 0,
"birth": "",
"height": 0,
"height_unit": "",
"weight": 0,
"weight_unit": "",
"is_complete_data": 0,
"status": 2,
"registered_at": "0001-01-01T00:00:00Z",
"is_virtual_user": false,
"is_batch_add": true,
"created_at": "2022-12-08T03:36:59+08:00",
"updated_at": "2022-12-08T03:36:59+08:00",
"user_detail": {
"id": 40,
"user_id": 59,
"wear_day": 0,
"last_login_time": "0001-01-01T00:00:00Z",
"last_data_sync_time": "0001-01-01T00:00:00Z",
"last_use_time": null,
"created_at": "2022-12-08T03:36:59+08:00",
"updated_at": "2022-12-08T03:36:59+08:00"
},
"final_status": 2,
"part_status": 0,
"provider_member": [
{
"admin_id": 2,
"provider_owner_id": 1,
"avatar": "xxx",
"first_name": "test",
"last_name": "wu",
"full_name": "test wu",
"email": "xxxx@163.com",
"npi": "",
"phone": "",
"area_code": "+86",
"sex": 1,
"role": 1,
"status": 1,
"description": "",
"last_active_time": "2022-12-08T07:13:14+08:00",
"registered_at": null,
"created_at": "2022-09-05T10:18:46+08:00",
"updated_at": "2022-12-08T07:13:15+08:00"
}
]
},
{
"user_id": 57,
"first_name": "test",
"last_name": "1",
"full_name": "test 1",
"avatar": "",
"area_code": "",
"phone": "17727953096",
"email": "hr24198x1147650@163.com",
"sex": 1,
"birth": "1997-08-20",
"height": 2141,
"height_unit": "inch",
"weight": 120,
"weight_unit": "lbs",
"is_complete_data": 0,
"status": 1,
"is_virtual_user": false,
"is_batch_add": true,
"registered_at": "2022-12-05T12:52:04+08:00",
"created_at": "2022-12-05T12:24:54+08:00",
"updated_at": "2022-12-06T06:28:11+08:00",
"user_detail": {
"id": 38,
"user_id": 57,
"wear_day": 0,
"last_login_time": "0001-01-01T00:00:00Z",
"last_data_sync_time": "0001-01-01T00:00:00Z",
"last_use_time": null,
"created_at": "2022-12-05T12:24:54+08:00",
"updated_at": "2022-12-05T12:24:54+08:00"
},
"final_status": 2,
"part_status": 0,
"provider_member": [
{
"admin_id": 2,
"provider_owner_id": 1,
"avatar": "",
"first_name": "wyongzhane3",
"last_name": "wu",
"full_name": "yongzhane3 wu",
"email": "xiaobaiban7@163.com",
"npi": "",
"phone": "13902200222",
"area_code": "+86",
"sex": 1,
"role": 1,
"status": 1,
"description": "",
"last_active_time": "2022-12-08T07:13:14+08:00",
"registered_at": null,
"created_at": "2022-09-05T10:18:46+08:00",
"updated_at": "2022-12-08T07:13:15+08:00"
}
]
},
{
"user_id": 58,
"first_name": "",
"last_name": "",
"full_name": "",
"avatar": "",
"area_code": "",
"phone": "",
"email": "2419847652@qq.com",
"sex": 0,
"birth": "",
"height": 0,
"height_unit": "",
"weight": 0,
"weight_unit": "",
"is_complete_data": 0,
"status": 2,
"is_virtual_user": false,
"is_batch_add": true,
"registered_at": "0001-01-01T00:00:00Z",
"created_at": "2022-12-06T01:27:01+08:00",
"updated_at": "2022-12-06T01:27:01+08:00",
"user_detail": {
"id": 39,
"user_id": 58,
"wear_day": 0,
"last_login_time": "0001-01-01T00:00:00Z",
"last_data_sync_time": "0001-01-01T00:00:00Z",
"last_use_time": null,
"created_at": "2022-12-06T01:27:01+08:00",
"updated_at": "2022-12-06T01:27:01+08:00"
},
"final_status": 2,
"part_status": 0,
"provider_member": [
{
"admin_id": 36,
"provider_owner_id": 1,
"avatar": "",
"first_name": "test",
"last_name": "1",
"full_name": "test 1",
"email": "hr2419847650@163.com",
"npi": "123",
"phone": "",
"area_code": "",
"sex": 0,
"role": 2,
"status": 1,
"description": "",
"last_active_time": null,
"registered_at": "2022-12-02T15:20:15+08:00",
"created_at": "2022-12-02T07:07:36+08:00",
"updated_at": "2022-12-07T08:47:44+08:00"
}
]
}
],
"total_size": 3
}
}
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"list": [
{
"user_id": 59,
"first_name": "",
"last_name": "",
"full_name": "",
"avatar": "",
"area_code": "",
"phone": "",
"email": "xxxx@qq.com",
"sex": 0,
"birth": "",
"height": 0,
"height_unit": "",
"weight": 0,
"weight_unit": "",
"is_complete_data": 0,
"status": 2,
"registered_at": "0001-01-01T00:00:00Z",
"is_virtual_user": false,
"is_batch_add": true,
"created_at": "2022-12-08T03:36:59+08:00",
"updated_at": "2022-12-08T03:36:59+08:00",
"user_detail": {
"id": 40,
"user_id": 59,
"wear_day": 0,
"last_login_time": "0001-01-01T00:00:00Z",
"last_data_sync_time": "0001-01-01T00:00:00Z",
"last_use_time": null,
"created_at": "2022-12-08T03:36:59+08:00",
"updated_at": "2022-12-08T03:36:59+08:00"
},
"final_status": 2,
"part_status": 0,
"provider_member": [
{
"admin_id": 2,
"provider_owner_id": 1,
"avatar": "xxx",
"first_name": "test",
"last_name": "wu",
"full_name": "test wu",
"email": "xxxx@163.com",
"npi": "",
"phone": "",
"area_code": "+86",
"sex": 1,
"role": 1,
"status": 1,
"description": "",
"last_active_time": "2022-12-08T07:13:14+08:00",
"registered_at": null,
"created_at": "2022-09-05T10:18:46+08:00",
"updated_at": "2022-12-08T07:13:15+08:00"
}
]
},
{
"user_id": 57,
"first_name": "test",
"last_name": "1",
"full_name": "test 1",
"avatar": "",
"area_code": "",
"phone": "17727953096",
"email": "hr24198x1147650@163.com",
"sex": 1,
"birth": "1997-08-20",
"height": 2141,
"height_unit": "inch",
"weight": 120,
"weight_unit": "lbs",
"is_complete_data": 0,
"status": 1,
"is_virtual_user": false,
"is_batch_add": true,
"registered_at": "2022-12-05T12:52:04+08:00",
"created_at": "2022-12-05T12:24:54+08:00",
"updated_at": "2022-12-06T06:28:11+08:00",
"user_detail": {
"id": 38,
"user_id": 57,
"wear_day": 0,
"last_login_time": "0001-01-01T00:00:00Z",
"last_data_sync_time": "0001-01-01T00:00:00Z",
"last_use_time": null,
"created_at": "2022-12-05T12:24:54+08:00",
"updated_at": "2022-12-05T12:24:54+08:00"
},
"final_status": 2,
"part_status": 0,
"provider_member": [
{
"admin_id": 2,
"provider_owner_id": 1,
"avatar": "",
"first_name": "wyongzhane3",
"last_name": "wu",
"full_name": "yongzhane3 wu",
"email": "xiaobaiban7@163.com",
"npi": "",
"phone": "13902200222",
"area_code": "+86",
"sex": 1,
"role": 1,
"status": 1,
"description": "",
"last_active_time": "2022-12-08T07:13:14+08:00",
"registered_at": null,
"created_at": "2022-09-05T10:18:46+08:00",
"updated_at": "2022-12-08T07:13:15+08:00"
}
]
},
{
"user_id": 58,
"first_name": "",
"last_name": "",
"full_name": "",
"avatar": "",
"area_code": "",
"phone": "",
"email": "2419847652@qq.com",
"sex": 0,
"birth": "",
"height": 0,
"height_unit": "",
"weight": 0,
"weight_unit": "",
"is_complete_data": 0,
"status": 2,
"is_virtual_user": false,
"is_batch_add": true,
"registered_at": "0001-01-01T00:00:00Z",
"created_at": "2022-12-06T01:27:01+08:00",
"updated_at": "2022-12-06T01:27:01+08:00",
"user_detail": {
"id": 39,
"user_id": 58,
"wear_day": 0,
"last_login_time": "0001-01-01T00:00:00Z",
"last_data_sync_time": "0001-01-01T00:00:00Z",
"last_use_time": null,
"created_at": "2022-12-06T01:27:01+08:00",
"updated_at": "2022-12-06T01:27:01+08:00"
},
"final_status": 2,
"part_status": 0,
"provider_member": [
{
"admin_id": 36,
"provider_owner_id": 1,
"avatar": "",
"first_name": "test",
"last_name": "1",
"full_name": "test 1",
"email": "hr2419847650@163.com",
"npi": "123",
"phone": "",
"area_code": "",
"sex": 0,
"role": 2,
"status": 1,
"description": "",
"last_active_time": null,
"registered_at": "2022-12-02T15:20:15+08:00",
"created_at": "2022-12-02T07:07:36+08:00",
"updated_at": "2022-12-07T08:47:44+08:00"
}
]
}
],
"total_size": 3
}
}