Appearance
Provider admin details
GET
v1/ad/admin/provider
Request
name | necessary | type | default | describe |
---|
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) |
-admin_id | true | int | - | 管理员id(admin id) |
-avatar | true | string | - | 头像(avatar) |
-first_name | true | string | - | 名(first name) |
-last_name | true | string | - | 姓(last name) |
true | string | - | 邮箱(email) | |
-npi | true | string | - | 执照编号(License Number) |
-phone | true | string | - | 电话号码(phone) |
-area_code | true | string | - | 国际区号(area code) |
-sex | true | int | - | 性别:1男,2女(sex:1 man,2 woman) |
-role | true | int | - | 角色:1机构提供者,2机构管理员,3医生(role:1provider owner,2provider admin,3doctor) |
language | true | string | - | 语言:en_us,zh_cn(language:en_us,zh_cn) |
-status | true | int | - | 状态:0禁用,1正常,2未激活(status: 0 disabled, 1 normal,2inactivated) |
-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": {
"admin_id": 16,
"provider_owner_id": 13,
"avatar": "",
"first_name": "test",
"last_name": "wu",
"full_name": "test wu",
"email": "user@email.com",
"npi": "",
"phone": "",
"area_code": "+86",
"sex": 1,
"role": 1,
"language": "zh_cn",
"status": 1,
"description": "",
"last_active_time": "2023-08-11T05:44:03+08:00",
"registered_at": "2023-03-06T09:57:07+08:00",
"created_at": "2023-03-06T09:49:33+08:00",
"updated_at": "2023-08-11T14:11:28+08:00"
}
}
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"admin_id": 16,
"provider_owner_id": 13,
"avatar": "",
"first_name": "test",
"last_name": "wu",
"full_name": "test wu",
"email": "user@email.com",
"npi": "",
"phone": "",
"area_code": "+86",
"sex": 1,
"role": 1,
"language": "zh_cn",
"status": 1,
"description": "",
"last_active_time": "2023-08-11T05:44:03+08:00",
"registered_at": "2023-03-06T09:57:07+08:00",
"created_at": "2023-03-06T09:49:33+08:00",
"updated_at": "2023-08-11T14:11:28+08:00"
}
}