Appearance
Provider owner detail
GET
v1/ad/providerOwner
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) |
-provider_owner_id | true | int | - | 机构所有者id(provider owner id) |
-company_name | true | string | - | 公司名称(company name) |
-expiration_time | true | string | - | 到期时间(expiration time) |
-company_description | true | string | - | 公司介绍(company description) |
-provider_num | true | int | - | 机构数量(provider number) |
-provider_member_num | true | int | - | 机构成员人数(provider member number) |
-user_num | true | int | - | 患者人数(patient nunber) |
-status | true | int | - | 状态:0禁用,1正常,2未激活(status: 0 disabled, 1 normal,2inactivated) |
-created_at | true | string | - | 创建时间(creation time) |
-updated_at | true | string | - | 更新时间(update time) |
---package_status | true | int | - | 套餐状态:1正常,2即将到期,3已过期(package status: 1 is normal, 2 is about to expire, 3 has expired) |
-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 | 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) |
--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 |
-provider_owner_address | true | object | - | 机构所有者-地址(provider owner-address) |
--id | true | int | - | id(id) |
--provider_owner_id | true | int | - | 机构所有者id(provider owner id) |
--country | true | string | - | 国家(country) |
--address | true | string | - | 地址(address) |
--room_number | true | string | - | 房间号(room number) |
--state | true | string | - | 州(state) |
--city | true | string | - | 城市(city) |
--post_code | true | string | - | 邮政编号(post code) |
--created_at | true | string | - | 创建时间(creation time) |
--updated_at | true | string | - | 更新时间(update time) |
-provider_owner_brand | true | object | - | 机构所有者-品牌(provider owner-brand) |
--id | true | int | - | id(id) |
--provider_owner_id | true | int | - | 机构所有者id(provider owner id) |
--brand_name | true | string | - | 品牌名字(brand name) |
--brand_logo | true | string | - | 品牌logo(brand logo) |
--website_url | true | string | - | 网站地址(website URL) |
--facebook_url | true | string | - | Facebook地址(Facebook URL) |
--twitter_url | true | string | - | Twitter地址(Twitter URL) |
--linkedin_url | true | string | - | Linkedin地址(Linkedin URL) |
--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": {
"provider_owner_id": 2,
"company_name": "company name",
"expiration_time": "2023-04-21 17:15:58",
"company_description": "xxx",
"provider_num": 1,
"provider_member_num": 1,
"user_num": 0,
"status": 1,
"created_at": "2023-02-13T17:15:22+08:00",
"updated_at": "2023-02-16T14:55:39+08:00",
"package_status": 1,
"provider_member": {
"admin_id": 2,
"provider_owner_id": 2,
"avatar": "",
"first_name": "test",
"last_name": "wu",
"full_name": "test wu",
"email": "user@email.com",
"npi": "8",
"phone": "",
"area_code": "",
"sex": 0,
"role": 1,
"status": 1,
"description": "",
"last_active_time": "2023-02-22T14:51:23+08:00",
"registered_at": "2023-02-13T17:15:58+08:00",
"created_at": "2023-02-13T17:15:22+08:00",
"updated_at": "2023-02-22T14:51:25+08:00"
},
"provider_owner_address": {
"id": 1,
"provider_owner_id": 2,
"country": "",
"address": "",
"address_second": "",
"room_number": "101",
"state": "",
"city": "",
"post_code": "",
"created_at": "2023-02-13T17:15:24+08:00",
"updated_at": "2023-02-15T10:42:44+08:00"
},
"provider_owner_brand": {
"id": 2,
"provider_owner_id": 2,
"brand_name": "",
"brand_logo": "http://logo.com/1.jpg",
"website_url": "http://1.com",
"facebook_url": "http://2.com",
"twitter_url": "http://3.com",
"linkedin_url": "http://4.com",
"created_at": "2023-02-13T17:15:23+08:00",
"updated_at": "2023-02-15T10:42:46+08:00"
}
}
}
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"provider_owner_id": 2,
"company_name": "company name",
"expiration_time": "2023-04-21 17:15:58",
"company_description": "xxx",
"provider_num": 1,
"provider_member_num": 1,
"user_num": 0,
"status": 1,
"created_at": "2023-02-13T17:15:22+08:00",
"updated_at": "2023-02-16T14:55:39+08:00",
"package_status": 1,
"provider_member": {
"admin_id": 2,
"provider_owner_id": 2,
"avatar": "",
"first_name": "test",
"last_name": "wu",
"full_name": "test wu",
"email": "user@email.com",
"npi": "8",
"phone": "",
"area_code": "",
"sex": 0,
"role": 1,
"status": 1,
"description": "",
"last_active_time": "2023-02-22T14:51:23+08:00",
"registered_at": "2023-02-13T17:15:58+08:00",
"created_at": "2023-02-13T17:15:22+08:00",
"updated_at": "2023-02-22T14:51:25+08:00"
},
"provider_owner_address": {
"id": 1,
"provider_owner_id": 2,
"country": "",
"address": "",
"address_second": "",
"room_number": "101",
"state": "",
"city": "",
"post_code": "",
"created_at": "2023-02-13T17:15:24+08:00",
"updated_at": "2023-02-15T10:42:44+08:00"
},
"provider_owner_brand": {
"id": 2,
"provider_owner_id": 2,
"brand_name": "",
"brand_logo": "http://logo.com/1.jpg",
"website_url": "http://1.com",
"facebook_url": "http://2.com",
"twitter_url": "http://3.com",
"linkedin_url": "http://4.com",
"created_at": "2023-02-13T17:15:23+08:00",
"updated_at": "2023-02-15T10:42:46+08:00"
}
}
}