Skip to content

Notification provider log list

GET v1/ad/provider/notification/log/:provider_id

Request

namenecessarytypedefaultdescribe
statusfalseint状态:0未读,1已读(status:0unread, 1read)

Response data struct

namenecessarytypedefaultdescribe
codetrueint-错误码(error code)
messagetruestring-错误信息(error message)
causetruestring-错误原因(error cause)
detailstrueobject-详情(details)
-total_sizetrueint-总条数(total size)
-listtruearray-列表(list)
--idtrueint-id(id)
--provider_owner_idtruestring-机构所有者id(provider owner id)
--provider_idtrueint-机构id(provider id)
--admin_idtrueint-管理员id(admin id)
--business_typetruestring-业务类型(business type)
--businesstruestring-业务(business)
--contenttruestring-内容(content)
--statustrueint-状态:0未读,1已读(status:0unread, 1read)
-created_attruestring-创建时间(creation time)
-updated_attruestring-更新时间(update time)

Example

  • Url params: v1/ad/provider/notification/log/20230309070101fuy4NRBb

  • Header:

keyvalue
x-api-keyyour's key value
  • Response body:
json
{
    "code": 0,
    "message": "Success",
    "cause": "",
    "details": {
        "list": [
            {
                "id": 42,
                "provider_owner_id": 13,
                "provider_id": "",
                "admin_id": 16,
                "business_type": "SystemNotification",
                "business": "SystemProviderNotification",
                "content": "{\"id\":9,\"title\":\"test title\",\"creator_id\":1,\"type\":\"1\",\"message_content\":\"test content\",\"link\":\"http://www.baidu.com\",\"posting_time_type\":1,\"appointed_time\":\"\",\"appointed_time_utc_offset\":0,\"release_time\":\"2023-08-11T14:40:05+08:00\",\"status\":0,\"created_at\":\"2023-08-11T14:40:08+08:00\",\"updated_at\":\"2023-08-11T14:40:08+08:00\"}",
                "status": 0,
                "created_at": "2023-08-11T14:40:24+08:00",
                "updated_at": "2023-08-11T14:40:24+08:00"
            },
            {
                "id": 29,
                "provider_owner_id": 13,
                "provider_id": "",
                "admin_id": 16,
                "business_type": "SystemNotification",
                "business": "SystemProviderNotification",
                "content": "{\"id\":8,\"title\":\"test title\",\"creator_id\":1,\"type\":\"1\",\"message_content\":\"test content\",\"link\":\"http://www.baidu.com\",\"posting_time_type\":1,\"appointed_time\":\"\",\"appointed_time_utc_offset\":0,\"release_time\":\"2023-08-11T14:39:14+08:00\",\"status\":0,\"created_at\":\"2023-08-11T14:39:17+08:00\",\"updated_at\":\"2023-08-11T14:39:17+08:00\"}",
                "status": 0,
                "created_at": "2023-08-11T14:39:33+08:00",
                "updated_at": "2023-08-11T14:39:33+08:00"
            },
            {
                "id": 16,
                "provider_owner_id": 13,
                "provider_id": "",
                "admin_id": 16,
                "business_type": "SystemNotification",
                "business": "SystemProviderNotification",
                "content": "{\"id\":6,\"title\":\"test title2\",\"creator_id\":1,\"type\":\"1\",\"message_content\":\"test content2\",\"link\":\"http://www.baidu.com\",\"posting_time_type\":1,\"appointed_time\":\"\",\"appointed_time_utc_offset\":0,\"release_time\":\"2023-08-11T10:48:06+08:00\",\"status\":0,\"created_at\":\"2023-08-11T10:48:08+08:00\",\"updated_at\":\"2023-08-11T10:48:08+08:00\"}",
                "status": 0,
                "created_at": "2023-08-11T10:48:25+08:00",
                "updated_at": "2023-08-11T10:48:25+08:00"
            },
            {
                "id": 3,
                "provider_owner_id": 13,
                "provider_id": "",
                "admin_id": 16,
                "business_type": "SystemNotification",
                "business": "SystemProviderNotification",
                "content": "{\"id\":5,\"title\":\"test title\",\"creator_id\":1,\"type\":\"1\",\"message_content\":\"test content\",\"link\":\"http://www.baidu.com\",\"posting_time_type\":1,\"appointed_time\":\"\",\"appointed_time_utc_offset\":0,\"release_time\":\"2023-08-11T10:45:48+08:00\",\"status\":0,\"created_at\":\"2023-08-11T10:45:50+08:00\",\"updated_at\":\"2023-08-11T10:45:50+08:00\"}",
                "status": 0,
                "created_at": "2023-08-11T10:46:11+08:00",
                "updated_at": "2023-08-11T10:46:11+08:00"
            }
        ],
        "total_size": 4
    }
}
{
    "code": 0,
    "message": "Success",
    "cause": "",
    "details": {
        "list": [
            {
                "id": 42,
                "provider_owner_id": 13,
                "provider_id": "",
                "admin_id": 16,
                "business_type": "SystemNotification",
                "business": "SystemProviderNotification",
                "content": "{\"id\":9,\"title\":\"test title\",\"creator_id\":1,\"type\":\"1\",\"message_content\":\"test content\",\"link\":\"http://www.baidu.com\",\"posting_time_type\":1,\"appointed_time\":\"\",\"appointed_time_utc_offset\":0,\"release_time\":\"2023-08-11T14:40:05+08:00\",\"status\":0,\"created_at\":\"2023-08-11T14:40:08+08:00\",\"updated_at\":\"2023-08-11T14:40:08+08:00\"}",
                "status": 0,
                "created_at": "2023-08-11T14:40:24+08:00",
                "updated_at": "2023-08-11T14:40:24+08:00"
            },
            {
                "id": 29,
                "provider_owner_id": 13,
                "provider_id": "",
                "admin_id": 16,
                "business_type": "SystemNotification",
                "business": "SystemProviderNotification",
                "content": "{\"id\":8,\"title\":\"test title\",\"creator_id\":1,\"type\":\"1\",\"message_content\":\"test content\",\"link\":\"http://www.baidu.com\",\"posting_time_type\":1,\"appointed_time\":\"\",\"appointed_time_utc_offset\":0,\"release_time\":\"2023-08-11T14:39:14+08:00\",\"status\":0,\"created_at\":\"2023-08-11T14:39:17+08:00\",\"updated_at\":\"2023-08-11T14:39:17+08:00\"}",
                "status": 0,
                "created_at": "2023-08-11T14:39:33+08:00",
                "updated_at": "2023-08-11T14:39:33+08:00"
            },
            {
                "id": 16,
                "provider_owner_id": 13,
                "provider_id": "",
                "admin_id": 16,
                "business_type": "SystemNotification",
                "business": "SystemProviderNotification",
                "content": "{\"id\":6,\"title\":\"test title2\",\"creator_id\":1,\"type\":\"1\",\"message_content\":\"test content2\",\"link\":\"http://www.baidu.com\",\"posting_time_type\":1,\"appointed_time\":\"\",\"appointed_time_utc_offset\":0,\"release_time\":\"2023-08-11T10:48:06+08:00\",\"status\":0,\"created_at\":\"2023-08-11T10:48:08+08:00\",\"updated_at\":\"2023-08-11T10:48:08+08:00\"}",
                "status": 0,
                "created_at": "2023-08-11T10:48:25+08:00",
                "updated_at": "2023-08-11T10:48:25+08:00"
            },
            {
                "id": 3,
                "provider_owner_id": 13,
                "provider_id": "",
                "admin_id": 16,
                "business_type": "SystemNotification",
                "business": "SystemProviderNotification",
                "content": "{\"id\":5,\"title\":\"test title\",\"creator_id\":1,\"type\":\"1\",\"message_content\":\"test content\",\"link\":\"http://www.baidu.com\",\"posting_time_type\":1,\"appointed_time\":\"\",\"appointed_time_utc_offset\":0,\"release_time\":\"2023-08-11T10:45:48+08:00\",\"status\":0,\"created_at\":\"2023-08-11T10:45:50+08:00\",\"updated_at\":\"2023-08-11T10:45:50+08:00\"}",
                "status": 0,
                "created_at": "2023-08-11T10:46:11+08:00",
                "updated_at": "2023-08-11T10:46:11+08:00"
            }
        ],
        "total_size": 4
    }
}