Appearance
provider admin setting notification get
GET
v1/ad/admin/provider/setting/notification
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) | |
-id | true | int | - | id(id) |
-admin_id | true | int | - | 管理员id(admin id) |
-system_notification | true | int | - | 系统通知:0都不,1web,2web和邮件(system notification:0 neither, 1web, 2web and mail) |
-patient_assigned | true | int | - | 患者分配:0都不,1web,2web和邮件(patient assigned:0 neither, 1web, 2web and mail) |
-new_patient_join | true | int | - | 新患者加入:0都不,1web,2web和邮件(new_patient join:0 neither, 1web, 2web and mail) |
-patient_completed | true | int | - | 患者睡眠达标:0都不,1web,2web和邮件(patient completed:0 neither, 1web, 2web and mail) |
-patient_alert | true | int | - | 患者预警:0都不,1web,2web和邮件(patient alert:0 neither, 1web, 2web and mail) |
-private_messages | true | int | - | 个人信息:0都不,1web,2web和邮件(private messages:0 neither, 1web, 2web and mail) |
-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": {
"id": 1,
"admin_id": 2,
"system_notification": 0,
"patient_assigned": 0,
"new_patient_join": 0,
"patient_completed": 0,
"patient_alert": 0,
"private_messages": 0,
"created_at": "2023-08-03T14:09:06+08:00",
"updated_at": "2023-08-03T14:23:36+08:00"
}
}
{
"code": 0,
"message": "Success",
"cause": "",
"details": {
"id": 1,
"admin_id": 2,
"system_notification": 0,
"patient_assigned": 0,
"new_patient_join": 0,
"patient_completed": 0,
"patient_alert": 0,
"private_messages": 0,
"created_at": "2023-08-03T14:09:06+08:00",
"updated_at": "2023-08-03T14:23:36+08:00"
}
}