优特云
[ { "name": "首页", "url": "http://www.utyun.com/", "target": "0", "child": [] }, { "name": "活动", "url": "http://www.utyun.com/h-col-141.html", "target": "0", "child": [] }, { "name": "产品", "url": "", "target": "1", "child": [ { "name": "U语言", "url": "http://www.utyun.com/h-col-176.html", "target": "0", "child": [] }, { "name": "U平台", "url": "http://www.utyun.com/h-col-150.html", "target": "0", "child": [] } ] }, { "name": "技术与服务", "url": "", "target": "1", "child": [ { "name": "运维服务", "url": "http://www.utyun.com/h-col-161.html", "target": "0", "child": [] }, { "name": "技术方案", "url": "http://www.utyun.com/h-col-178.html", "target": "0", "child": [] } ] }, { "name": "优特云学院", "url": "", "target": "1", "child": [ { "name": "教程", "url": "http://www.utyun.com/h-col-166.html", "target": "0", "child": [] }, { "name": "下载中心", "url": "http://www.utyun.com/h-col-170.html", "target": "0", "child": [] }, { "name": "论坛", "url": "http://www.utyun.com/h-col-169.html", "target": "0", "child": [] } ] }, { "name": "关于优特云", "url": "", "target": "1", "child": [ { "name": "企业概况", "url": "http://www.utyun.com/h-col-171.html", "target": "0", "child": [] }, { "name": "新闻动态", "url": "http://www.utyun.com/h-col-172.html", "target": "0", "child": [] }, { "name": "加入我们", "url": "http://www.utyun.com/h-col-173.html", "target": "0", "child": [] }, { "name": "团队风采", "url": "http://www.utyun.com/h-col-140.html", "target": "0", "child": [] } ] } ]
v0.06.00
账户服务(account)-用户地址管理(外部)

伟 最后一次编辑

3 年多前 34

添加一条用户地址信息

基本信息

Path: /account/userAddr/create

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
area string 必须
contact_addr string 必须 联系地址
contact_phone string 必须 联系电话
province string 必须
city string 必须
position string 非必须 位置经纬度
is_default string 必须 是否为默认地址(Y表示是N表示否)
contact_man string 必须 联系人

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 必须
├─ id string 必须 购物车ID

更新某条用户地址

基本信息

Path: /account/userAddr/update

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
area string 必须
contact_addr string 必须 联系地址
contact_phone string 必须 联系电话
province string 必须
city string 必须
id string 非必须 地址ID
position string 必须 位置经纬度
is_default string 必须 是否为默认地址(Y表示是N表示否)
contact_man string 必须 联系人

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须

设置某条用户地址为默认地址

基本信息

Path: /account/userAddr/setDefaultAddr

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
id string 必须 地址ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须

删除某条用户地址

基本信息

Path: /account/userAddr/delete

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
id string 必须 地址ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 非必须

获取某条用户地址详情

基本信息

Path: /account/userAddr/getDetail

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
id string 必须 地址ID

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 必须
├─ area string 必须
├─ contact_addr string 必须 联系地址
├─ contact_phone string 必须 联系电话
├─ province string 必须
├─ city string 必须
├─ id string 非必须 地址ID
├─ position string 必须 位置经纬度
├─ is_default string 必须 是否为默认地址(Y表示是N表示否)
├─ contact_man string 必须 联系人

获取用户的默认地址

基本信息

Path: /account/userAddr/getDefaultAddress

Method: GET

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
string 非必须 format: binary

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object 必须
├─ area string 必须
├─ contact_addr string 必须 联系地址
├─ contact_phone string 必须 联系电话
├─ province string 必须
├─ city string 必须
├─ id string 非必须 地址ID
├─ position string 必须 位置经纬度
├─ is_default string 必须 是否为默认地址(Y表示是N表示否)
├─ contact_man string 必须 联系人

查询用户地址列表

基本信息

Path: /account/userAddr/find

Method: POST

接口描述:

请求参数

Headers

参数名称 参数值 是否必须 示例 备注
Content-Type application/json
Body
名称 类型 是否必须 默认值 备注 其他信息
pageno integer 必须 当前页数 format: int32
pagesize integer 必须 每页的记录数 format: int32

返回数据

名称 类型 是否必须 默认值 备注 其他信息
msg string 必须 响应信息
code integer 必须 响应状态码 format: int32
data object [] 必须 响应数据 item 类型: object
├─ area string 必须
├─ contact_addr string 必须 联系地址
├─ contact_phone string 必须 联系电话
├─ province string 必须
├─ city string 必须
├─ id string 非必须 地址ID
├─ position string 必须 位置经纬度
├─ is_default string 必须 是否为默认地址(Y表示是N表示否)
├─ contact_man string 必须 联系人
page object 非必须
├─ total integer 非必须 format: int64
├─ records integer 非必须 format: int64
├─ pageno integer 非必须 format: int32
├─ pagesize integer 非必须 format: int32

优特云