view notice: 查看 通告 資料 05-19 16:44
view notice: 查看 通告 資料
更新時間:2022-05-19 16:44:39
HTTP Request
POST: manager/notice/view/:id
URL Parameters
Parameter | Type | Status | Description |
---|---|---|---|
id | int | required | notices.id |
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
langCode | string | optional | 語言, langCode=zhGB / zhHK / zhCN |
mod | string | optional | 模式, mod=view / edit |
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 |
Example usage
Example #1
POST: manager/notice/view/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
}
]
}
}
Example #2
POST: manager/notices/view/99999
Response(200,status=404 Not found.)
{
"status": 404,
"data": {
"data": []
}
}
Example #3
POST: manager/notices/view/invaildparams
Response(200,status=101 Invaild params.)
{
"status": 101,
"error": "Invaild params."
}