auth/assign_to_estate: 分配到屋宛 12-13 15:16
auth/assign_to_estate: 分配到屋宛
更新時間:2022-12-13 15:16:10
HTTP Request
POST: auth/assign_to_estate
Body Parameters
Parameter | Type | Status | Description |
---|---|---|---|
user_id | int | required | users.id |
estates | int[] | required | estates.id |
Response Structure
Parameter | Type | Status | Description |
---|---|---|---|
status | int | required | 0: 成功 非0: 失敗 |
data | object[] | required | |
id | int | required | user_estate.id |
user_id | int | required | user_estate.user_id |
estate_id | string | required | user_estate.estate_id |
Example usage
Example #1
POST: auth/assign_to_estate
Body
{
"user_id": 22,
"estates": [
2
]
}
Response(200,status=0)
{
"status": 0,
"data": [
{
"id": 90,
"user_id": 22,
"estate_id": 2
}
]
}