wiki:app2.2.0/useraddress

Version 15 (modified by wuyuanbo, 10 years ago) (diff)

--

用户收货信息

获取默认收货地址

线上:/appIntf/useraddress/getDefaultAddress.jsp

说明

获取默认收货地址

提交方式

get

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id(cookie参数)登录sessionIdstring""

返回

result {
        status: 1,
        msg: "请求成功",
        data: {
             addrId: 123456,           //地址Id
             name: "rico",               //用户名
             province: "13-河北",        //省
             city: "1303-秦皇岛",        //城市
             county: "130324-卢龙县",   //县,区
             phone: "15952352365",       //电话 
             detail: "广州市天河区天河软件园高普路115号太平洋网络",      //详细地址
             idcardNo: "445185455623562955",                             //身份证号码
             idcardImga: "http://img.pconline.com.cn/images/upload/upc/tx/pcbest_buy/a.jpg",     //身份证正面
             idcardImgb: "http://img.pconline.com.cn/images/upload/upc/tx/pcbest_buy/b.jpg",     //身份证反面
             postcode: "510006"        //邮政编码
        }
}

获取用户的地址列表

线上:/appIntf/useraddress/listUserAddress.jsp

说明

获取用户的地址列表

提交方式

get

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id(cookie参数)登录sessionIdstring""

返回

result {
        status: 1,
        msg: '请求成功',
        data: [
            {
             addrId: 123456,            //地址Id
             name: "rico",                //用户名
             province: "13-河北",         //省
             city: "1303-秦皇岛",         //城市
             county: "130324-卢龙县",    //县,区
             phone: "15952352365",        //电话 
             detail: "广州市天河区天河软件园高普路115号太平洋网络",      //详细地址
             idcardNo: "445185455623562955",                             //身份证号码
             idcardImga: "http://img.pconline.com.cn/images/upload/upc/tx/pcbest_buy/a.jpg",     //身份证正面
             idcardImgb: "http://img.pconline.com.cn/images/upload/upc/tx/pcbest_buy/b.jpg",     //身份证反面
             postcode: "510006",        //邮政编码
             isdefault: 0            //是否默认地址 1是,0否
           }
        ]
}

添加收货地址

线上:/appIntf/useraddress/addUserAddress.jsp

说明

用户添加收货地址

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id(cookie参数)登录sessionIdstring""
name收货人名字string""
province省份string""
city城市string""
county县区string""
phone手机号码string""
detail详细地址string""
idcardNo身份证号码string""
idcardImga身份证正面链接string""
idcardImgb身份证反面链接string""
postcode邮政编码string""
isdefault默认地址int0

返回

result {
        status: 1,
        msg: "请求成功"
}

修改收货地址

线上:/appIntf/useraddress/updateUserAddress.jsp

说明

修改用户的收货地址

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id(cookie参数)登录sessionIdstring""
addrId用户地址Idint""
name收货人名字string""
province省份string""
city城市string""
county县区string""
phone手机号码string""
detail详细地址string""
idcardNo身份证号码string""
idcardImga身份证正面链接string""
idcardImgb身份证反面链接string""
postcode邮政编码string""

返回

result {
        status: 1,
        msg: "请求成功"
}

删除地址

线上:/appIntf/useraddress/deleteUserAddress.jsp

说明

删除用户地址

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id(cookie参数)登录sessionIdstring""
addrId用户地址Idint0

返回

result {
        status: 1,
        msg: "请求成功"
}

设置默认地址

线上:/appIntf/useraddress/setDefaultAddress.jsp

说明

设置用户的默认地址

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id(cookie参数)-string""
addrId用户地址Idint0

返回

result {
        status: 1,
        msg: "请求成功"
}