地址列表

创建于 2021-10-11 / 最近更新于 2021-10-11 / 5864
字体: [默认] [大] [更大]

简要描述

地址列表

接口版本

版本号 制定人 制定日期 修订日期
1.0.0 Devil 2020-10-07

请求URL

useraddress/index

请求方式

POST

公共参数

参数名 是否必须 类型 默认值 描述
application 是 string web 请求应用、参考公共中详解
application_client_type 是 string pc 请求客户端、参考公共中详解
token 否 string token

请求参数

无

返回示例

正确时返回

{
    "msg": "success",
    "code": 0,
    "data": {
        "data": [
            {
                "id": "19",
                "alias": "公司",
                "name": "张三",
                "tel": "020-81167888",
                "province": "19",
                "city": "289",
                "county": "3041",
                "address": "新港中路397号",
                "lng": "121.3886718906",
                "lat": "31.1188928641",
                "is_default": true,
                "idcard_name": "龚哥哥",
                "idcard_number": "32222222113333113",
                "idcard_front": "https://dev.shopxo.vip/static/upload/images/user_address/1/41/2021/10/11/1633945255122811.png",
                "idcard_back": "https://dev.shopxo.vip/static/upload/images/user_address/1/41/2021/10/11/1633945259504476.png",
                "province_name": "广东省",
                "city_name": "广州市",
                "county_name": "海珠区",
                "idcard_front_old": "/static/upload/images/user_address/1/41/2021/10/11/1633945255122811.png",
                "idcard_back_old": "/static/upload/images/user_address/1/41/2021/10/11/1633945259504476.png"
            }
        ]
    }
}

错误时返回

{
    "msg": "error",
    "code": -1,
    "data": []
}

返回参数说明 -> data

参数名 是否必须 类型 描述
id 是 int 地址id
name 是 string 姓名
tel 是 string 电话
address 是 string 详情地址
province 是 int 省id
province_name 是 string 省名称
alias 是 string 别名
city 是 int 城市id
city_name 是 string 城市名称
county 是 int 区县id
county_name 是 string 区县名称
lat 是 float 经纬度
lng 是 float 经纬度
is_default 是 int 是否默认(0否、1是)
idcard_name 是 string 身份证姓名
idcard_number 是 string 身份证号码
idcard_back 是 string 身份证背面
idcard_back_old 是 string 身份证背面原始地址
idcard_front 是 string 身份证正面
idcard_front_old 是 string 身份证正面原始地址

备注

更多返回错误代码请看首页的错误代码描述

2 人点赞过