- 必须先读
- Ajax编程_V7.6大纲配套
- 数据可视化
- Vue基础
- Vue_大事件
- 黑马头条号
- 极客园_PC
- 极客园(黑马头条)_移动端
- 人资项目
- 小兔鲜电商
- 小程序基础
- 小程序项目
- layui_大事件
- 品优购电商后台
- 其他可用接口
获取-收货地址
GET
/member/address
请求参数
Header 参数
Authorization
string
必需
示例值:
{{ERABBIT_ACCESS_TOKEN}}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://pcapi-xiaotuxian-front-devtest.itheima.net/member/address' \
--header 'Authorization: {{ERABBIT_ACCESS_TOKEN}}'
返回响应
🟢200成功
application/json
Body
code
string
业务状态码
msg
string
响应消息
result
array [object {11}]
响应结果
id
string
收货地址id
receiver
string
收货人-姓名
contact
string
收货人-联系方式
provinceCode
string
收货人-省份编码
cityCode
string
收货人-城市编码
countyCode
string
收货人-地区编码
address
string
收货人-详细地址
isDefault
integer
收货地址是否默认
fullLocation
string
收货人-完整地址
postalCode
string | null
收货人-邮政编码
addressTags
string | null
收货人-地址标签
示例
{
"code": "1",
"msg": "操作成功",
"result": [
{
"id": "1543553507431288834",
"receiver": "老李",
"contact": "13900002020",
"provinceCode": "210000",
"cityCode": "210200",
"countyCode": "210202",
"address": "xxx街xxx路",
"isDefault": 1,
"fullLocation": "辽宁省大连市中山区",
"postalCode": "111006",
"addressTags": "家里"
},
{
"id": "1543552536651239425",
"receiver": "老李",
"contact": "13900002020",
"provinceCode": "210000",
"cityCode": "210200",
"countyCode": "210202",
"address": "xxx街xxx路",
"isDefault": 1,
"fullLocation": "辽宁省大连市中山区",
"postalCode": "111006",
"addressTags": "家里"
},
{
"id": "1540230291484839938",
"receiver": "龙龙酱",
"contact": "17265443216",
"provinceCode": "420000",
"cityCode": "420100",
"countyCode": "420111",
"address": "武昌首义学院",
"isDefault": 1,
"fullLocation": "湖北省武汉市洪山区",
"postalCode": null,
"addressTags": null
},
{
"id": "1539125179223904257",
"receiver": "阿朱",
"contact": "13966666666",
"provinceCode": "320000",
"cityCode": "320500",
"countyCode": "320508",
"address": "慕容山庄",
"isDefault": 1,
"fullLocation": "江苏省苏州市姑苏区",
"postalCode": "514688",
"addressTags": "姑苏慕容"
},
{
"id": "1527553797373562882",
"receiver": "张先生12",
"contact": "15236363232",
"provinceCode": "150000",
"cityCode": "150600",
"countyCode": "150625",
"address": "仙霞西路885弄",
"isDefault": 1,
"fullLocation": "内蒙古自治区鄂尔多斯市杭锦旗",
"postalCode": "100010",
"addressTags": "家"
},
{
"id": "1539126595464204290",
"receiver": "慕容复",
"contact": "13966666666",
"provinceCode": "320000",
"cityCode": "320500",
"countyCode": "320508",
"address": "慕容山庄",
"isDefault": 0,
"fullLocation": "江苏省苏州市姑苏区",
"postalCode": "415366",
"addressTags": "姑苏慕容"
}
]
}
修改于 2022-07-10 03:17:47