Skip to content

Provider user list

GET v1/ad/provider/user/:provider_id/list

Request

namenecessarytypedefaultdescribe
usernamefalsestring-账号(account)
user_idfalsestring-用户id(user id)
statusfalseint-状态:0未加入,1正常(status: 0 not joined, 1normal)

Response data struct

namenecessarytypedefaultdescribe
codetrueint-错误码(error code)
messagetruestring-错误信息(error message)
causetruestring-错误原因(error cause)
detailstrueobject-详情(details)
-listtruearray-用户信息(user info)
-user_idtrueint-用户id(user id)
-first_nametruestring-名(first name)
-last_nametruestring-姓(last name)
-full_nametruestring-全名(full name)
-avatartruestring-头像(avatar)
-area_codetruestring-国际区号(area code)
-phonetruestring-手机(phone)
-emailtruestring-邮箱(email)
-sextrueint-性别:1男,2女(sex:1 man, 2 woman)
-birthtruestring-出生日期(birth date)
-heighttrueint-身高(height)
-weighttrueint-体重(weight)
-is_virtual_usertruebool-是否是虚拟用户(Is it a virtual user)
-is_batch_addtruebool-是否为批量添加(Whether to add in batches)
statusfalseint-状态:0禁用,1正常,2未激活(status: 0 disabled, 1 normal,2inactivated)
-is_complete_datatrueint-是否完善资料:0为否,1为是(Whether the information is complete: 0 no, 1 yes)
-created_attruedatetime-创建时间(creation time)
-updated_attruedatetime-更新时间(update time)
-user_detailtrueobject-用户-详情(user detail)
--idtrueint-用户详情id(user detail id)
--user_idtrueint-用户id(user id)
--wear_daytrueint-佩戴天数(wear day)
--last_login_timetruestring-最后登录时间(last login time)
--last_data_sync_timetruestring-最近数据同步时间(last data sync time)
--created_attruestring-创建时间(creation time)
--updated_attruestring-更新时间(update time)
-final_statustrueint-最终状态:0禁用,1正常,2未加入(final status: 0 disabled, 1 normal,2not join)
-part_statustrueint-局部状态:0未加入,1正常(status: 0 not joined, 1normal)
-provider_membertrueobject-机构成员(provider member)
--admin_idtrueint-管理员id(admin id)
--provider_owner_idtrueint-机构所有者id(provider owner id)
--avatartruestring-头像(avatar)
--first_nametruestring-名(first name)
--last_nametruestring-姓(last name)
--full_nametruestring-全名(full name)
--emailtruestring-邮箱(email)
--npitruestring-执照编号(License Number)
--phonetruestring-电话号码(phone)
--area_codetruestring-国际区号(area code)
--sextruestring-性别:1男,2女(sex:1 man,2 woman)
--roletruestring-角色:1机构提供者,2机构管理员,3医生(role:1provider owner,2provider admin,3doctor)
--statustruestring-状态:0禁用,1正常,2未激活(status: 0 disabled, 1 normal,2inactivated)
--descriptiontruestring-描述(description)
--last_active_timetruestring-最后活跃时间(last active time)
--registered_attruestring-注册时间(registration time)
--created_attruestring-创建时间(creation time)
--updated_attruestring-更新时间(update time)

Example

  • Url params: v1/ad/provider/user/20221209093553w5DaBXtp/list

  • Header:

keyvalue
x-api-keyyour'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
    }
}