wiki:app2.2.0/useraddress

Version 5 (modified by zhanzhenchao, 10 years ago) (diff)

--

用户收货信息

获取默认收货地址

线上: /app/userAddress/getDefaultAddress

说明

获取默认收货地址

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: {
             addrId: "1234"
        }
}

获取用户的地址列表

线上: /app/userAddress/listUserAddress

说明

获取用户的地址列表

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        data: [
            {
             addrId: 123456,           //地址Id
             name: rico                //用户名
             province: 13-河北         //省
             city: 1303-秦皇岛         //城市
             country: 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否
           }
        ]
}

添加收货地址

线上: /app/topicType/cache/listIndexTopicType.do

说明

用户添加收货地址

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id-string""
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        pageNo: 1,
        pageSize: 10,
        total: 20,
        pageTotal: 2,
        data: [
             $receiveComment
        ]
}

$topicType

修改收货地址

线上: /app/topicType/cache/listIndexTopicType.do

说明

-

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id-string""
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        pageNo: 1,
        pageSize: 10,
        total: 20,
        pageTotal: 2,
        data: [
             $receiveComment
        ]
}

$topicType

删除地址

线上: /app/topicType/cache/listIndexTopicType.do

说明

-

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id-string""
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        pageNo: 1,
        pageSize: 10,
        total: 20,
        pageTotal: 2,
        data: [
             $receiveComment
        ]
}

$topicType

设置默认地址

线上: /app/topicType/cache/listIndexTopicType.do

说明

-

提交方式

post

是否需要登录

true

缓存方式

缓存时间

参数

参数名 参数含义 类型 默认值 是否必须
common_session_id-string""
common_session_id-string""

返回

result {
        status: 1,
        msg: '请求成功',
        pageNo: 1,
        pageSize: 10,
        total: 20,
        pageTotal: 2,
        data: [
             $receiveComment
        ]
}

$topicType