update user_building: 更新 使用者-大廈 資料 12-13 15:16
update user_building: 更新 使用者-大廈 資料
更新時間:2022-12-13 15:16:10
HTTP Request
POST: manager/user_building/update/:id
URL Parameters
Parameter | Type | Status | Description |
---|---|---|---|
id | int | required | user_building.id |
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
data | object | optional | |
user | int | required | users.id |
building | int | required | buildings.id |
Response Structure
Parameter | Type | Status | Description |
---|---|---|---|
status | int | required | 0: 成功, 非0: 失敗 |
data | object | optional |
Example usage
Example #1
POST: manager/user_building/update/1
Body
{
"data": {
"user": 1,
"building": 1
}
}
Response(200,status=0)
{
"status": 0
}
Example #2
POST: manager/user_building/update/99999
Response(200,status=404 Not Found.)
{
"status": 404,
"error": "Not found."
}
Example #3
POST: manager/user_building/update/invaildparams
Response(200,status=101)
{
"status": 101,
"error": "Invaild params."
}