账户服务(account)-用户地址管理(外部)
添加一条用户地址信息
基本信息
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 |
账户服务(account)-用户搜索历史
创建一条用户搜索记录
基本信息
Path: /account/queryKeywords/create
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
keywords | string | 必须 | 关键词 | ||
app_id | string | 必须 | 应用ID |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
msg | string | 必须 | 响应信息 | ||
code | integer | 必须 | 响应状态码 | format: int32 | |
data | object | 必须 | |||
├─ id | string | 必须 | 记录ID |
清除历史记录
基本信息
Path: /account/queryKeywords/clearAll
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
app_id | string | 必须 | 应用ID |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
msg | string | 必须 | 响应信息 | ||
code | integer | 必须 | 响应状态码 | format: int32 | |
data | object | 非必须 |
查询最近指定条数的搜索记录
基本信息
Path: /account/queryKeywords/getLatest
Method: POST
接口描述:
请求参数
Headers
参数名称 | 参数值 | 是否必须 | 示例 | 备注 |
---|---|---|---|---|
Content-Type | application/json | 是 | ||
Body |
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
pagesize | integer | 必须 | 记录数量 | format: int32 | |
app_id | string | 必须 | 应用ID |
返回数据
名称 | 类型 | 是否必须 | 默认值 | 备注 | 其他信息 |
---|---|---|---|---|---|
msg | string | 必须 | 响应信息 | ||
code | integer | 必须 | 响应状态码 | format: int32 | |
data | object [] | 必须 | 响应数据 | item 类型: object | |
├─ update_time | string | 必须 | 搜索记录更新时间 | format: date-time | |
├─ create_time | string | 必须 | 搜索记录创建时间 | format: date-time | |
├─ keywords | string | 必须 | 关键词 | ||
├─ is_del | string | 必须 | 是否标记为删除 | ||
├─ id | string | 必须 | 搜索记录ID | ||
├─ app_id | string | 必须 | 应用ID |