add floor: 添加 樓層 資料 05-19 16:44
add floor: 添加 樓層 資料
更新時間:2022-05-19 16:44:39
HTTP Request
POST: manager/floor/add
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
data | object | required | |
building | int | required | floors.building_id |
name | string | required | floors.name |
title_enHK | string | required | buildings.title_enHK |
title_zhHK | string | required | buildings.title_zhHK |
title_zhCN | string | required | buildings.title_zhCN |
Response Structure
Parameter | Type | Status | Description |
---|---|---|---|
status | int | required | 0: 成功, 非0: 失敗 |
data | object | optional | |
id | int | optional | floors.id |
Example usage
Example #1
POST: manager/floor/add
Body
{
"data": {
"building": 1,
"name": "11/F",
"title_enHK": "new floor",
"title_zhHK": "new floor",
"title_zhCN": "new floor"
}
}
Response(200,status=0)
{
"status": 0,
"data": {
"id": 3
}
}