list notice: 獲取 通告 資料 12-13 15:16
list notice: 獲取 通告 資料
更新時間:2022-12-13 15:16:10
HTTP Request
POST: manager/notice/list
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
langCode | string | optional | 語言, langCode=zhGB / zhHK / zhCN |
limit | int | optional | 最大數量 |
page | int | optional | 第幾頁 |
order | object | optional | 排序, 目前只支援單一column排序 |
name | string | required | column name |
direction | string | required | asc / desc |
natural | boolean | required | 開啟自然排序 |
filters | object | optional | |
name | string | optional | notices.name |
start_at | datetime | optional | notices.start_at |
end_at | datetime | optional | notices.end_at |
published_at | datetime | optional | notices.published_at |
notice_type | int | optional | notices.notice_type |
notice_cat | int | optional | notices.notice_cat |
building | int | optional | notices.building_id |
floor | int | optional | notices.floor_id |
unit | int | optional | notices.unit_id |
Response Structure
Parameter | Type | Status | Description |
---|---|---|---|
status | int | required | 0: 成功, 非0: 失敗 |
data | object | optional | |
data | object[] | optional | |
id | int | required | notices.id |
name | int | required | notices.name |
notice_cat | int | required | notice_cats.id |
notice_cat_title_enHK | string | required | notice_cats.title_enHK |
notice_cat_title_zhHK | string | required | notice_cats.title_zhHK |
notice_cat_title_zhCN | string | required | notice_cats.title_zhCN |
urgent | int | required | notices.urgent |
title_enHK | string | required | notices.title_enHK |
title_zhHK | string | required | notices.title_zhHK |
title_zhCN | string | required | notices.title_zhCN |
content_enHK | string | required | notices.content_enHK |
content_enHK | string | required | notices.content_enHK |
content_enHK | string | required | notices.content_enHK |
template_enHK | int | required | notices.template_enHK |
template_zhHK | int | required | notices.template_zhHK |
template_zhCN | int | required | notices.template_zhCN |
start_at | datetime | required | notices.start_at |
end_at | datetime | required | notices.end_at |
published_at | datetime | required | notices.published_at |
notice_type | int | required | notices.notice_type |
notice_type_title_enHK | int | required | notice_types.title_enHK |
notice_type_title_zhHK | int | required | notice_types.title_zhHK |
notice_type_title_zhCN | int | required | notice_types.title_zhCN |
estate | int | required | notices.estate_id |
estate_title_enHK | string | required | estates.title_enHK |
estate_title_zhHK | string | required | estates.title_zhHK |
estate_title_zhCN | string | required | estates.title_zhCN |
building | int | required | notices.building_id |
building_title_enHK | string | required | buildings.title_enHK |
building_title_zhHK | string | required | buildings.title_zhHK |
building_title_zhCN | string | required | buildings.title_zhCN |
floor | int | required | notices.floor_id |
floor_title_enHK | string | required | floors.title_enHK |
floor_title_zhHK | string | required | floors.title_zhHK |
floor_title_zhCN | string | required | floors.title_zhCN |
unit | int | required | notices.unit_id |
unit_title_enHK | string | required | units.title_enHK |
unit_title_zhHK | string | required | units.title_zhHK |
unit_title_zhCN | string | required | units.title_zhCN |
action | object | required | 應用於RJCMS上 |
props | object | required | |
id | int | optional | notices.id |
limit | int | required | 最大顯示數量 |
page | int | required | 當前頁數 |
maxPage | int | required | 最大頁數 |
total | int | required | 總數 |
order | object | required | 排序 |
name | string | required | column name |
direction | string | required | ASC / DESC |
filters | object | required |
Example usage
Example #1
POST: manager/notice/list
Body
{
"limit": 2,
"page": 1
}
Response(200,status=0)
{
"status": 0,
"data": {
"data": [
{
"id": 1,
"name": "notice_1",
"notice_cat": 1,
"notice_cat_title_enHK": "property management fee",
"notice_cat_title_zhHK": "property management fee",
"notice_cat_title_zhCN": "property management fee",
"urgent": 0,
"title_enHK": "notice_1",
"title_zhHK": "notice_1",
"title_zhCN": "notice_1",
"content_enHK": "notice_content_1",
"content_zhHK": "notice_content_1",
"content_zhCN": "notice_content_1",
"template_enHK": 900,
"template_zhHK": 900,
"template_zhCN": 900,
"start_at": "2021-09-01 12:00:00",
"end_at": "2021-12-01 22:00:00",
"published_at": "2021-08-17 13:21:23",
"notice_type": 1,
"notice_type_title_enHK": "estate",
"notice_type_title_zhHK": "estate",
"notice_type_title_zhCN": "estate",
"estate": 1,
"estate_title_enHK": "怡靖苑",
"estate_title_zhHK": "怡靖苑",
"estate_title_zhCN": "怡靖苑",
"building": null,
"building_title_enHK": null,
"building_title_zhHK": null,
"building_title_zhCN": null,
"floor": null,
"floor_title_enHK": null,
"floor_title_zhHK": null,
"floor_title_zhCN": null,
"unit": null,
"unit_title_enHK": null,
"unit_title_zhHK": null,
"unit_title_zhCN": null,
"action": {
"props": {
"id": 1
}
}
},
{
"id": 2,
"name": "notice_2",
"notice_cat": 1,
"notice_cat_title_enHK": "property management fee",
"notice_cat_title_zhHK": "property management fee",
"notice_cat_title_zhCN": "property management fee",
"urgent": 0,
"title_enHK": "notice_2",
"title_zhHK": "notice_2",
"title_zhCN": "notice_2",
"content_enHK": "notice_content_2",
"content_zhHK": "notice_content_2",
"content_zhCN": "notice_content_2",
"template_enHK": 900,
"template_zhHK": 900,
"template_zhCN": 900,
"start_at": "2021-09-01 12:00:00",
"end_at": "2021-12-01 22:00:00",
"published_at": "2021-08-17 13:21:24",
"notice_type": 1,
"notice_type_title_enHK": "estate",
"notice_type_title_zhHK": "estate",
"notice_type_title_zhCN": "estate",
"estate": 1,
"estate_title_enHK": "怡靖苑",
"estate_title_zhHK": "怡靖苑",
"estate_title_zhCN": "怡靖苑",
"building": null,
"building_title_enHK": null,
"building_title_zhHK": null,
"building_title_zhCN": null,
"floor": null,
"floor_title_enHK": null,
"floor_title_zhHK": null,
"floor_title_zhCN": null,
"unit": null,
"unit_title_enHK": null,
"unit_title_zhHK": null,
"unit_title_zhCN": null,
"action": {
"props": {
"id": 2
}
}
}
],
"page": 1,
"filters": [],
"limit": 2,
"order": {
"name": "id",
"direction": "asc"
},
"maxPage": 4,
"total": 8
}
}