Appearance
Provider admin login
GET v1/ad/admin/provider/login
Request
| name | necessary | type | default | describe |
|---|---|---|---|---|
| username | true | string | - | 账号(account) |
| password | true | string | - | 密码(password) |
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 | true | object | - | 管理员信息(admin) |
| --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) |
| --status | true | int | - | 状态:0禁用,1正常,2未激活(status: 0 disabled, 1 normal,2inactivated) |
| --last_active_time | true | string | - | 最后活跃时间(last active time) |
| --created_at | true | string | - | 创建时间(creation time) |
| --updated_at | true | string | - | 更新时间(update time) |
| -token | true | object | - | token(token) |
| --token_type | true | string | - | token类型(token type) |
| --access_token | true | int | - | 访问token(access token) |
| --expires_in | true | int | - | token有效时间:秒(effective time:second) |
| --expires_time | true | string | - | token过期时间(expire time) |
| --refresh_token | true | int | - | refresh token(access token) |
| --refresh_expires_in | true | int | - | refresh token有效时间:秒(effective time:second) |
| --refresh_expire_time | true | string | - | refresh token过期时间(expire time) |
| -remaining_day | true | int | - | 套餐剩余天数(package remaining days) |
Example
- Query Params:
| key | value |
|---|---|
| username | user@email.com |
| password | xxxxx |
- Header:
| key | value |
|---|---|
| x-api-key | your's key value |
- Response Body
json
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"admin": {
"admin_id": 2,
"provider_owner_id": 2,
"avatar": "http://www.com/1.jpg",
"first_name": "test",
"last_name": "wu",
"full_name": "test wu",
"email": "user@email.com",
"npi": "888",
"phone": "",
"area_code": "",
"sex": 0,
"role": 1,
"status": 1,
"description": "",
"last_active_time": "2023-02-20T09:35:31+08:00",
"registered_at": "2023-02-13T17:15:58+08:00",
"created_at": "2023-02-13T17:15:22+08:00",
"updated_at": "2023-02-20T09:28:33+08:00"
},
"token": {
"token_type": "bearer",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Nzc0NjE3MzEsImFkbWluX2lkIjoyLCJwcm92aWRlcl9vd25lcl9pZCI6Miwicm9sZSI6MSwiaXNfcmVmcmVzaF90b2tlbiI6ZmFsc2V9.kOVQo8nWSgUVMHq8ghHb19joBVU4i22da8qZ4PzacaY",
"expires_in": 604800,
"expire_time": "2023-02-27T09:35:31+08:00",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Nzk0NDg5MzEsImFkbWluX2lkIjoyLCJwcm92aWRlcl9vd25lcl9pZCI6Miwicm9sZSI6MSwiaXNfcmVmcmVzaF90b2tlbiI6dHJ1ZX0.HqEsya62nrpzhi-Y3OQG4tlwd8ReIi_QPwBYnq35yHE",
"refresh_expires_in": 2592000,
"refresh_expire_time": "2023-03-22T09:35:31+08:00"
},
"remaining_day": 24
}
}{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"admin": {
"admin_id": 2,
"provider_owner_id": 2,
"avatar": "http://www.com/1.jpg",
"first_name": "test",
"last_name": "wu",
"full_name": "test wu",
"email": "user@email.com",
"npi": "888",
"phone": "",
"area_code": "",
"sex": 0,
"role": 1,
"status": 1,
"description": "",
"last_active_time": "2023-02-20T09:35:31+08:00",
"registered_at": "2023-02-13T17:15:58+08:00",
"created_at": "2023-02-13T17:15:22+08:00",
"updated_at": "2023-02-20T09:28:33+08:00"
},
"token": {
"token_type": "bearer",
"access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Nzc0NjE3MzEsImFkbWluX2lkIjoyLCJwcm92aWRlcl9vd25lcl9pZCI6Miwicm9sZSI6MSwiaXNfcmVmcmVzaF90b2tlbiI6ZmFsc2V9.kOVQo8nWSgUVMHq8ghHb19joBVU4i22da8qZ4PzacaY",
"expires_in": 604800,
"expire_time": "2023-02-27T09:35:31+08:00",
"refresh_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE2Nzk0NDg5MzEsImFkbWluX2lkIjoyLCJwcm92aWRlcl9vd25lcl9pZCI6Miwicm9sZSI6MSwiaXNfcmVmcmVzaF90b2tlbiI6dHJ1ZX0.HqEsya62nrpzhi-Y3OQG4tlwd8ReIi_QPwBYnq35yHE",
"refresh_expires_in": 2592000,
"refresh_expire_time": "2023-03-22T09:35:31+08:00"
},
"remaining_day": 24
}
}