view user_floor: 查看 使用者-樓層 資料 12-13 15:16
view user_floor: 查看 使用者-樓層 資料
更新時間:2022-12-13 15:16:10
HTTP Request
POST: manager/user_floor/view/:id
URL Parameters
Parameter | Type | Status | Description |
---|---|---|---|
id | int | required | user_floor.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 | user_floor.id |
user | int | required | users.id |
user_name | string | required | users.name |
floor | int | required | floors.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 |
Example usage
Example #1
POST: manager/user_floor/view/1
Response(200,status=0)
{
"status": 0,
"data": {
"data": [
{
"id": 1,
"user": 13,
"user_name": "tenant_1",
"floor": 1,
"floor_name": "floor_1",
"floor_title_enHK": "1/F",
"floor_title_zhHK": "1/F",
"floor_title_zhCN": "1/F"
}
]
}
}
Example #2
POST: manager/user_floor/view/99999
Response(200,status=404 Not found.)
{
"status": 404,
"data": {
"data": []
}
}
Example #3
POST: manager/user_floor/view/invaildparams
Response(200,status=101 Invaild params.)
{
"status": 101,
"error": "Invaild params."
}