Authorization: Bearer ********************
{
"contact_name": "张三",
"phone": "18223350967",
"address": "重庆市渝北区线外城市花园3栋20楼",
"province_id": 1,
"city_id": 2,
"area_id": 3,
"is_default": true
}
curl --location --request PUT '/api/user/address/1' \
--header 'Accept;' \
--header 'X-Requested-With;' \
--header 'Content-Type: application/json' \
--data-raw '{
"contact_name": "张三",
"phone": "18223350967",
"address": "重庆市渝北区线外城市花园3栋20楼",
"province_id": 1,
"city_id": 2,
"area_id": 3,
"is_default": true
}'
{
"data": {
"id": 0,
"contact_name": "string",
"phone": "string",
"address": "string",
"province_id": 0,
"province": {
"id": 0,
"code": "string",
"name": "string",
"parent_id": 0,
"level": 0,
"children": [
"string"
]
},
"city_id": 0,
"city": {
"id": 0,
"code": "string",
"name": "string",
"parent_id": 0,
"level": 0,
"children": [
"string"
]
},
"area_id": 0,
"area": {
"id": 0,
"code": "string",
"name": "string",
"parent_id": 0,
"level": 0,
"children": [
"string"
]
},
"is_default": true
},
"code": 0,
"message": "string"
}