update user_floor: 更新 使用者-樓層 資料 05-19 16:44
update user_floor: 更新 使用者-樓層 資料
更新時間:2022-05-19 16:44:39
HTTP Request
POST: manager/user_floor/update/:id
URL Parameters
Parameter | Type | Status | Description |
---|---|---|---|
id | int | required | user_floor.id |
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
data | object | optional | |
user | int | required | users.id |
floor | int | required | floors.id |
Response Structure
Parameter | Type | Status | Description |
---|---|---|---|
status | int | required | 0: 成功, 非0: 失敗 |
data | object | optional |
Example usage
Example #1
POST: manager/user_floor/update/1
Body
{
"data": {
"user": 1,
"floor": 1
}
}
Response(200,status=0)
{
"status": 0
}
Example #2
POST: manager/user_floor/update/99999
Response(200,status=404 Not Found.)
{
"status": 404,
"error": "Not found."
}
Example #3
POST: manager/user_floor/update/invaildparams
Response(200,status=101)
{
"status": 101,
"error": "Invaild params."
}