| Version | Update Time | Status | Author | Description |
|---|---|---|---|---|
0.0.1 | 2023-09-01 18:50:00 | 创建文档 | codingliang | 初始化接口文档 |
1. 关于我
1.1. 关于我详情
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 关于我详情
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/aboutShop/open/infoResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─type | string | 类型;1网页 2内容 | - |
└─url | string | 网页地址;type为1时必填 | - |
└─descInfo | string | 富文本内容;type为2时必填 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"createBy": 440,
"createTime": "2024-04-15 22:38:16",
"updateTime": "2024-04-15 22:38:16",
"updateBy": 426,
"id": 273,
"type": "fw2ste",
"url": "www.xn---xn--x8s-r93q.io",
"descInfo": "enksjh"
}
}1.2. 修改关于我
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改关于我
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id | false | - |
type | string | 类型;1网页 2内容 | true | - |
url | string | 网页地址;type为1时必填 | false | - |
descInfo | string | 富文本内容;type为2时必填 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/aboutShop/admin/update? --data '{
"createBy": 101,
"createTime": "2024-04-15 22:38:16",
"updateTime": "2024-04-15 22:38:16",
"updateBy": 461,
"id": 225,
"type": "gm3zg1",
"url": "www.xn---xn--x8s-r93q.io",
"descInfo": "yvydl4"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}2. 管理员信息
2.1. 管理员登录
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 管理员登录
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
username | string | 用户名 | true | - |
password | string | 密码 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/admin/open/login? --data '{
"username": "旭尧.龙",
"password": "koj40n"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─token | string | token | - |
└─ttl | int64 | token过期时间 | - |
└─nickName | string | 用户昵称 | - |
└─avatar | string | 用户头像 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"token": "0r83nr",
"ttl": 58,
"nickName": "tod.goodwin",
"avatar": "9gc7bw"
}
}2.2. 管理员列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 管理员列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/admin/list?curPage=1&orderField=vfjoev&pageSize=10&order=yv5u1dResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id,修改时不能为空 | - |
└─username | string | 用户名称 | - |
└─phone | string | 手机号 | - |
└─avatar | string | 头像 | - |
└─password | string | 密码 | - |
└─state | string | 状态;0禁用 1 正常 | - |
└─gender | string | 性别;1 男性 2 女性 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 251,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"createBy": 378,
"createTime": "2024-04-15 22:38:16",
"updateTime": "2024-04-15 22:38:16",
"updateBy": 512,
"id": 643,
"username": "旭尧.龙",
"phone": "15361099981",
"avatar": "vjjjd9",
"password": "dg2t5u",
"state": "kncdkn",
"gender": "6khqbn"
}
]
}
}2.3. 管理员详情
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 管理员详情
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 管理员id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/admin/info/922Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id,修改时不能为空 | - |
└─username | string | 用户名称 | - |
└─phone | string | 手机号 | - |
└─avatar | string | 头像 | - |
└─password | string | 密码 | - |
└─state | string | 状态;0禁用 1 正常 | - |
└─gender | string | 性别;1 男性 2 女性 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"createBy": 705,
"createTime": "2024-04-15 22:38:16",
"updateTime": "2024-04-15 22:38:16",
"updateBy": 397,
"id": 534,
"username": "旭尧.龙",
"phone": "15361099981",
"avatar": "sjtaei",
"password": "d3qd3n",
"state": "uzcdwh",
"gender": "zse9y9"
}
}2.4. 新增管理员
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增管理员
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,修改时不能为空 | false | - |
username | string | 用户名称 | true | - |
phone | string | 手机号 | true | - |
avatar | string | 头像 | true | - |
password | string | 密码 | false | - |
state | string | 状态;0禁用 1 正常 | true | - |
gender | string | 性别;1 男性 2 女性 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/admin/save? --data '{
"createBy": 659,
"createTime": "2024-04-15 22:38:16",
"updateTime": "2024-04-15 22:38:16",
"updateBy": 956,
"id": 138,
"username": "旭尧.龙",
"phone": "15361099981",
"avatar": "ov0tcc",
"password": "wwzs3a",
"state": "o2i3fv",
"gender": "y464mh"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}2.5. 修改用户
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改用户
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,修改时不能为空 | false | - |
username | string | 用户名称 | true | - |
phone | string | 手机号 | true | - |
avatar | string | 头像 | true | - |
password | string | 密码 | false | - |
state | string | 状态;0禁用 1 正常 | true | - |
gender | string | 性别;1 男性 2 女性 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/admin/update? --data '{
"createBy": 692,
"createTime": "2024-04-15 22:38:16",
"updateTime": "2024-04-15 22:38:16",
"updateBy": 886,
"id": 186,
"username": "旭尧.龙",
"phone": "15361099981",
"avatar": "kt1lhs",
"password": "zq7qku",
"state": "9v3q5d",
"gender": "j6dkus"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}2.6. 修改用户密码
Type: PUT
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 只有超级管理员才能修改其他用户密码
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
userId | int64 | 用户id 待修改用户的id | false | - |
password | string | 新密码 | false | - |
Request-example:
curl -X PUT -i http://localhost:10000/cloud-mall/admin/password --data 'password=7jxxue&userId=593'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}2.7. 删除用户
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除用户
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/admin/delete --data '[
217,
252
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}3. app端使用到的聚合接口
3.1. 首页
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 包含首页轮播图、金刚墙、限时精选、热门推荐数据
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/app/open/indexResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─carousels | array | 轮播图 | - |
└─id | int64 | 轮播图id | - |
└─img | string | 图片地址 | - |
└─remark | string | 备注 | - |
└─sort | int32 | 排序 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─type | string | 跳转类型;0不跳转 1调整页面 2调整网页 | - |
└─url | string | 跳转地址;type不为0时不能为空 | - |
└─navigations | array | 金刚区 | - |
└─id | int64 | id | - |
└─name | string | 类别名称 | - |
└─iconName | string | 图标地址 | - |
└─remark | string | 备注 | - |
└─sort | int32 | 排序 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─type | string | 类别;0不跳转 1调整页面 2调整网页 | - |
└─url | string | 跳转地址;type不为0时不能为空 | - |
└─limitGoods | array | 限时精选榜单 | - |
└─goodsId | int64 | 商品id | - |
└─sort | int32 | 排序 | - |
└─name | string | 商品名称 | - |
└─state | string | 商品状态;0下架 1在售 2 待审核 | - |
└─img | string | 商品图片地址;多张图片使用,分割 | - |
└─price | number | 销售价格 | - |
└─marketPrice | number | 市场价格 | - |
└─hot | string | 是否热门推荐;0否1是 | - |
└─limited | string | 是否限时精选;0否1是 | - |
└─hotGoods | array | 热门榜单 | - |
└─goodsId | int64 | 商品id | - |
└─sort | int32 | 排序 | - |
└─name | string | 商品名称 | - |
└─state | string | 商品状态;0下架 1在售 2 待审核 | - |
└─img | string | 商品图片地址;多张图片使用,分割 | - |
└─price | number | 销售价格 | - |
└─marketPrice | number | 市场价格 | - |
└─hot | string | 是否热门推荐;0否1是 | - |
└─limited | string | 是否限时精选;0否1是 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"carousels": [
{
"id": 130,
"img": "5dkqkm",
"remark": "x3x0ev",
"sort": 92,
"state": "gupe1j",
"type": "ir9d3t",
"url": "www.xn---xn--x8s-r93q.io"
}
],
"navigations": [
{
"id": 769,
"name": "旭尧.龙",
"iconName": "旭尧.龙",
"remark": "i0j4r9",
"sort": 715,
"state": "7pob3p",
"type": "e24tbx",
"url": "www.xn---xn--x8s-r93q.io"
}
],
"limitGoods": [
{
"goodsId": 235,
"sort": 799,
"name": "旭尧.龙",
"state": "ig4f6o",
"img": "9syu2z",
"price": 985,
"marketPrice": 521,
"hot": "wbb5yc",
"limited": "fsvvir"
}
],
"hotGoods": [
{
"goodsId": 672,
"sort": 870,
"name": "旭尧.龙",
"state": "y6a256",
"img": "0nx195",
"price": 678,
"marketPrice": 399,
"hot": "hlyfqm",
"limited": "ser272"
}
]
}
}4. 品牌分类
4.1. 列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/brandCategoryRelation/list?pageSize=10&order=iijxtk&orderField=7jiz0z&curPage=1Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─brandId | int64 | 品牌id | - |
└─goodsCategoryId | int64 | 一级分类id | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 511,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"createBy": 451,
"createTime": "2024-04-15 22:38:16",
"updateTime": "2024-04-15 22:38:16",
"updateBy": 844,
"id": 482,
"brandId": 261,
"goodsCategoryId": 606
}
]
}
}4.2. 信息
Type: POST
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | No comments found. | true | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/brandCategoryRelation/info/344Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─brandId | int64 | 品牌id | - |
└─goodsCategoryId | int64 | 一级分类id | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"createBy": 740,
"createTime": "2024-04-15 22:38:16",
"updateTime": "2024-04-15 22:38:16",
"updateBy": 612,
"id": 318,
"brandId": 231,
"goodsCategoryId": 79
}
}4.3. 保存
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 保存
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id | false | - |
brandId | int64 | 品牌id | false | - |
goodsCategoryId | int64 | 一级分类id | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/brandCategoryRelation/save? --data '{
"createBy": 46,
"createTime": "2024-04-15 22:38:16",
"updateTime": "2024-04-15 22:38:16",
"updateBy": 367,
"id": 539,
"brandId": 919,
"goodsCategoryId": 919
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}4.4. 修改
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id | false | - |
brandId | int64 | 品牌id | false | - |
goodsCategoryId | int64 | 一级分类id | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/brandCategoryRelation/update? --data '{
"createBy": 726,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 601,
"id": 230,
"brandId": 90,
"goodsCategoryId": 267
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}4.5. 删除
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/brandCategoryRelation/delete --data '[
566,
443
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}5. 品牌信息
5.1. 列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/brand/list?order=y1oop6&orderField=bz363t&pageSize=10&curPage=1Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─name | string | 品牌名称 | - |
└─icon | string | 品牌图标 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 491,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"createBy": 839,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 542,
"id": 179,
"name": "旭尧.龙",
"icon": "uabz8v"
}
]
}
}5.2. 信息
Type: POST
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | No comments found. | true | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/brand/info/241Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─name | string | 品牌名称 | - |
└─icon | string | 品牌图标 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"createBy": 816,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 173,
"id": 828,
"name": "旭尧.龙",
"icon": "tbizfv"
}
}5.3. 保存
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 保存
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id | false | - |
name | string | 品牌名称 | false | - |
icon | string | 品牌图标 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/brand/save? --data '{
"createBy": 529,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 262,
"id": 458,
"name": "旭尧.龙",
"icon": "quvv3h"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}5.4. 修改
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id | false | - |
name | string | 品牌名称 | false | - |
icon | string | 品牌图标 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/brand/update? --data '{
"createBy": 938,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 334,
"id": 906,
"name": "旭尧.龙",
"icon": "3r7nte"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}5.5. 删除
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/brand/delete --data '[
164,
349
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}6. 轮播图
6.1. 轮播图列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 轮播图列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/carousel/open/list?pageSize=10&order=f0bijf&orderField=pluawd&curPage=1Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─img | string | 图片地址 | - |
└─remark | string | 备注 | - |
└─sort | int32 | 排序 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─type | string | 跳转类型;0不跳转 1跳转页面 2跳转网页 | - |
└─url | string | 跳转地址;type不为0时不能为空 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 140,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"createBy": 936,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 109,
"id": 886,
"img": "wom2bv",
"remark": "8vcr7b",
"sort": 36,
"state": "k2h1ku",
"type": "9cvxud",
"url": "www.xn---xn--x8s-r93q.io"
}
]
}
}6.2. 轮播图信息
Type: POST
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 轮播图信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | No comments found. | true | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/carousel/admin/info/251Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─img | string | 图片地址 | - |
└─remark | string | 备注 | - |
└─sort | int32 | 排序 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─type | string | 跳转类型;0不跳转 1跳转页面 2跳转网页 | - |
└─url | string | 跳转地址;type不为0时不能为空 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"createBy": 588,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 787,
"id": 848,
"img": "br3yaf",
"remark": "17i4pm",
"sort": 191,
"state": "z460zh",
"type": "9yefbl",
"url": "www.xn---xn--x8s-r93q.io"
}
}6.3. 新增轮播图
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增轮播图
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id | false | - |
img | string | 图片地址 | true | - |
remark | string | 备注 | false | - |
sort | int32 | 排序 | true | - |
state | string | 状态;0禁用 1启用 | false | - |
type | string | 跳转类型;0不跳转 1跳转页面 2跳转网页 | true | - |
url | string | 跳转地址;type不为0时不能为空 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/carousel/admin/add? --data '{
"createBy": 847,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 826,
"id": 859,
"img": "q1jcui",
"remark": "z7x734",
"sort": 382,
"state": "0elowf",
"type": "mc3y92",
"url": "www.xn---xn--x8s-r93q.io"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}6.4. 修改轮播图
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改轮播图
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id | false | - |
img | string | 图片地址 | true | - |
remark | string | 备注 | false | - |
sort | int32 | 排序 | true | - |
state | string | 状态;0禁用 1启用 | false | - |
type | string | 跳转类型;0不跳转 1跳转页面 2跳转网页 | true | - |
url | string | 跳转地址;type不为0时不能为空 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/carousel/admin/update? --data '{
"createBy": 791,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 142,
"id": 265,
"img": "o6gaec",
"remark": "sdxx8a",
"sort": 729,
"state": "349hx7",
"type": "lzd5u4",
"url": "www.xn---xn--x8s-r93q.io"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}6.5. 删除轮播图
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除轮播图
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/carousel/admin/delete --data '[
427,
589
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}7. 购物车接口
7.1. 用户获取购物车
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户获取购物车
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/user/cart/Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─items | array | 购物车商品项 | - |
└─key | string | 购物车项key | - |
└─goodsId | int64 | 商品id | - |
└─skuId | int64 | skuId | - |
└─check | boolean | 是否选中 | - |
└─goodsName | string | 商品名称 | - |
└─goodsMasterImg | string | 商品主图 | - |
└─saleState | string | 销售状态 | - |
└─goodAttr | string | 商品属性 | - |
└─goodsActualPrice | number | 售卖单价 | - |
└─marketPrice | number | 市场价格 | - |
└─goodsCount | int32 | 商品数量 | - |
└─limitNum | int32 | 限制数量 | - |
└─goodsTotalAmt | number | 总价 | - |
└─countNum | int32 | 商品数量 | - |
└─countType | int32 | 商品类型数量 | - |
└─totalAmount | number | 总价 | - |
└─reduce | number | 优惠 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"items": [
{
"key": "4ky81u",
"goodsId": 615,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"check": true,
"goodsName": "旭尧.龙",
"goodsMasterImg": "hjyla2",
"saleState": "ovb8l0",
"goodAttr": "n5lid2",
"goodsActualPrice": 515,
"marketPrice": 698,
"goodsCount": 991,
"limitNum": 75,
"goodsTotalAmt": 141
}
],
"countNum": 397,
"countType": 743,
"totalAmount": 55,
"reduce": 390
}
}7.2. 商品加入购物车
Type: PUT
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 商品加入购物车
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
goodId | int64 | 商品id | true | - |
skuId | int64 | skuId 商品开启sku后该值不能为空 | false | - |
num | int32 | 数量 | true | - |
Request-example:
curl -X PUT -i http://localhost:10000/cloud-mall/user/cart/ --data 'goodId=30&num=572&skuId=ccd472c0-8af1-4b51-ab60-0c43e4493775'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}7.3. 选中/取消选中购物车中某件商品
Type: PUT
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 选中/取消选中购物车中某件商品
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
key | string | 购物车项key | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
check | string | 是否选中 1是,其他否 | false | - |
Request-example:
curl -X PUT -i http://localhost:10000/cloud-mall/user/cart/check/w6jxi4 --data 'check=bxqh7e'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}7.4. 批量选中/取消选中购物车中某件商品
Type: PUT
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 批量选中/取消选中购物车中某件商品
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
keys | string | 购物项key 多个key使用,分割 | false | - |
check | string | 是否选中 1是,其他否 | false | - |
Request-example:
curl -X PUT -i http://localhost:10000/cloud-mall/user/cart/batchCheck --data 'check=gmcpvm&keys=omtbwk'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}7.5. 删除购物车中某件商品
Type: DELETE
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 删除购物车中某件商品
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
key | string | 购物车项key | true | - |
Request-example:
curl -X DELETE -i http://localhost:10000/cloud-mall/user/cart/e54qorResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}7.6. 清空购物车
Type: DELETE
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 清空购物车
Request-example:
curl -X DELETE -i http://localhost:10000/cloud-mall/user/cart/clearResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}8. 快递公司
8.1. 快递公司列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 快递公司列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/expressCompany/open/list?orderField=38kuij&order=oazgsy&curPage=1&pageSize=10Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id,修改时不能为空 | - |
└─code | string | 编码 | - |
└─expressName | string | 快递名称 | - |
└─sort | int32 | 排序 | - |
└─contactsName | string | 联系人姓名 | - |
└─contactsPhone | string | 联系人手机号码 | - |
└─state | string | 状态;1正常 0禁用 | - |
└─delFlag | string | 删除标识 1是 0 否 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 576,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"createBy": 893,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 292,
"id": 971,
"code": "14635",
"expressName": "旭尧.龙",
"sort": 954,
"contactsName": "旭尧.龙",
"contactsPhone": "15361099981",
"state": "k8bcmh",
"delFlag": "2wxerv"
}
]
}
}8.2. 新增快递公司
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 快递公司编码不能随便乱填,具体参考快递100,参考链接:https://api.kuaidi100.com/document/5f0ffb5ebc8da837cbd8aefc#section_1
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,修改时不能为空 | false | - |
code | string | 编码 | true | - |
expressName | string | 快递名称 | true | - |
sort | int32 | 排序 | true | - |
contactsName | string | 联系人姓名 | true | - |
contactsPhone | string | 联系人手机号码 | true | - |
state | string | 状态;1正常 0禁用 | false | - |
delFlag | string | 删除标识 1是 0 否 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/expressCompany/admin/add? --data '{
"createBy": 481,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 188,
"id": 885,
"code": "14635",
"expressName": "旭尧.龙",
"sort": 830,
"contactsName": "旭尧.龙",
"contactsPhone": "15361099981",
"state": "kc5ex5",
"delFlag": "mqeqqe"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}8.3. 修改快递公司
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改快递公司
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,修改时不能为空 | false | - |
code | string | 编码 | true | - |
expressName | string | 快递名称 | true | - |
sort | int32 | 排序 | true | - |
contactsName | string | 联系人姓名 | true | - |
contactsPhone | string | 联系人手机号码 | true | - |
state | string | 状态;1正常 0禁用 | false | - |
delFlag | string | 删除标识 1是 0 否 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/expressCompany/admin/update? --data '{
"createBy": 360,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 215,
"id": 268,
"code": "14635",
"expressName": "旭尧.龙",
"sort": 312,
"contactsName": "旭尧.龙",
"contactsPhone": "15361099981",
"state": "zm3auf",
"delFlag": "8m7vit"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}8.4. 删除快递公司
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除快递公司
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | id集合,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/expressCompany/admin/delete --data '[
638,
50
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}9. 文件服务
9.1. 文件上传
Type: POST
Content-Type: multipart/form-data
Description: 文件上传接口,文件大小不能超过5M,只支持jpg、jpeg、bmp、png类型的文件
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
file | file | 文件内容 | true | - |
Request-example:
curl -X POST -H 'Content-Type: multipart/form-data' -i http://localhost:10000/cloud-mall/file/open/Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": "3zwp35"
}9.2. 删除文件
Type: DELETE
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 删除文件
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
url | string | 文件浏览路径 | true | - |
Request-example:
curl -X DELETE -i http://localhost:10000/cloud-mall/file/open/?url=www.xn---xn--x8s-r93q.ioResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}10. 商品分类
10.1. 分类树形列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 分类树形列表
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/goodsCategory/open/listResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─id | int64 | 分类id | - |
└─name | string | 分类名称 | - |
└─icon | string | 分类icon | - |
└─level | int32 | 层级;不能超过2级 | - |
└─pid | int64 | 父分类id | - |
└─sort | int32 | 排序 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─childCategory | array | 子分类 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": [
{
"id": 234,
"name": "旭尧.龙",
"icon": "28pvs8",
"level": 48,
"pid": 434,
"sort": 816,
"state": "sw2exr",
"childCategory": [
{
"$ref": ".."
}
]
}
]
}10.2. 分类树形列表(管理员)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 返回包含为禁用状态的分类
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/goodsCategory/admin/listResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─id | int64 | 分类id | - |
└─name | string | 分类名称 | - |
└─icon | string | 分类icon | - |
└─level | int32 | 层级;不能超过2级 | - |
└─pid | int64 | 父分类id | - |
└─sort | int32 | 排序 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─childCategory | array | 子分类 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": [
{
"id": 170,
"name": "旭尧.龙",
"icon": "c3yay5",
"level": 120,
"pid": 776,
"sort": 248,
"state": "pcr64j",
"childCategory": [
{
"$ref": ".."
}
]
}
]
}10.3. 新增分类
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增分类
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,更新时不能为空 | false | - |
name | string | 分类名称 | true | - |
icon | string | 分类icon | true | - |
level | int32 | 层级;不能超过2级 | true | - |
pid | int64 | 父分类id,level为2时不能为空 | false | - |
sort | int32 | 排序 | true | - |
state | string | 状态;0禁用 1启用 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goodsCategory/admin/save? --data '{
"createBy": 695,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 512,
"id": 84,
"name": "旭尧.龙",
"icon": "08ytr8",
"level": 187,
"pid": 614,
"sort": 130,
"state": "o16mfs"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}10.4. 修改分类
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改分类
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,更新时不能为空 | false | - |
name | string | 分类名称 | true | - |
icon | string | 分类icon | true | - |
level | int32 | 层级;不能超过2级 | true | - |
pid | int64 | 父分类id,level为2时不能为空 | false | - |
sort | int32 | 排序 | true | - |
state | string | 状态;0禁用 1启用 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goodsCategory/admin/update? --data '{
"createBy": 624,
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": 984,
"id": 932,
"name": "旭尧.龙",
"icon": "d73cc3",
"level": 993,
"pid": 236,
"sort": 643,
"state": "pzz0p4"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}10.5. 删除分类
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除分类
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goodsCategory/delete --data '[
718,
383
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}11. 商品评价
11.1. 评论列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: orderField可选值:reviewCnt评分,createTime评价时间
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
orderId | int64 | 订单id | false | - |
goodsId | int64 | 商品id | false | - |
skuId | int64 | skuId | false | - |
userId | string | 用户id | false | - |
hasImg | string | 是否有图;1是 2否 | false | - |
reviewType | string | 评论类别;1差评 2中评 3好评 | false | - |
state | string | 评论状态,0隐藏 1显示 | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/goodsComment/open/list?userId=14&goodsId=723&orderField=gxlwei&curPage=1&order=5791pb&reviewType=si73zc&pageSize=10&hasImg=nscuv9&skuId=ccd472c0-8af1-4b51-ab60-0c43e4493775&state=w0imyq&orderId=673Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id | - |
└─orderId | int64 | 订单id | - |
└─goodsId | int64 | 商品id | - |
└─skuId | int64 | skuId | - |
└─userId | string | 用户id | - |
└─userImg | string | 用户头像 | - |
└─reviewContent | string | 评价内容 | - |
└─reviewType | string | 评论类别;1差评 2中评 3好评 | - |
└─reviewCnt | int32 | 评论星数;1-5 | - |
└─reviewImgs | string | 晒图;多张图片使用,分割 | - |
└─state | string | 状态;0隐藏 1显示 | - |
└─createBy | string | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | string | 更新人 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 623,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 636,
"orderId": 507,
"goodsId": 173,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"userId": "14",
"userImg": "1vg0u4",
"reviewContent": "qaxa8x",
"reviewType": "2d24qs",
"reviewCnt": 396,
"reviewImgs": "zd8r0t",
"state": "4btpeh",
"createBy": "r2s2k1",
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": "af33gv"
}
]
}
}11.2. 订单评价详情
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单评价详情
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | No comments found. | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/goodsComment/open/info/815Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─orderId | int64 | 订单id | - |
└─goodsId | int64 | 商品id | - |
└─skuId | int64 | skuId | - |
└─userId | string | 用户id | - |
└─userImg | string | 用户头像 | - |
└─reviewContent | string | 评价内容 | - |
└─reviewType | string | 评论类别;1差评 2中评 3好评 | - |
└─reviewCnt | int32 | 评论星数;1-5 | - |
└─reviewImgs | string | 晒图;多张图片使用,分割 | - |
└─state | string | 状态;0隐藏 1显示 | - |
└─createBy | string | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | string | 更新人 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 59,
"orderId": 787,
"goodsId": 154,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"userId": "14",
"userImg": "eirqak",
"reviewContent": "0efwad",
"reviewType": "iimolj",
"reviewCnt": 360,
"reviewImgs": "fd9ttg",
"state": "j890c5",
"createBy": "s4hcrw",
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": "w5ypbb"
}
}11.3. 新增订单评论
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增订单评论
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
orderId | int64 | 订单id | true | - |
goodsId | int64 | 商品id | true | - |
skuId | int64 | skuId | false | - |
userId | string | 用户id | false | - |
userImg | string | 用户头像 | false | - |
reviewContent | string | 评价内容 | true | - |
reviewType | string | 评论类别;1差评 2中评 3好评 | true | - |
reviewCnt | int32 | 评论星数;1-5 | true | - |
reviewImgs | string | 晒图;多张图片使用,分割 | false | - |
state | string | 状态;0隐藏 1显示 | false | - |
createBy | string | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | string | 更新人 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goodsComment/user/save? --data '{
"id": 299,
"orderId": 262,
"goodsId": 397,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"userId": "14",
"userImg": "fekeun",
"reviewContent": "t4oir2",
"reviewType": "m50ure",
"reviewCnt": 985,
"reviewImgs": "aoslpa",
"state": "hl8r2p",
"createBy": "f0iflk",
"createTime": "2024-04-15 22:38:17",
"updateTime": "2024-04-15 22:38:17",
"updateBy": "5uejwx"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}11.4. 修改订单评论状态
Type: PUT
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 修改订单评论状态
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
commentId | int64 | 评论id | true | - |
state | string | 1显示,其他隐藏 | true | - |
Request-example:
curl -X PUT -i http://localhost:10000/cloud-mall/goodsComment/admin/541/m3vyfdResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}11.5. 删除订单评价
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除订单评价
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goodsComment/admin/delete --data '[
306,
355
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}12. 商品
12.1. 商品列表(app端)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 提供商品按分类、关键字等分页检索功能。orderField可用值:collectCnt收藏量、saleCnt 销量、price 价格,
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
goodsName | string | 商品名称,模糊搜索 | false | - |
state | string | 商品状态 0下架 1在售 2 待审核 | false | - |
categoryId | int64 | 商品类别id,精确搜索 | false | - |
hot | string | 是否热门推荐;0否1是 | false | - |
limited | string | 是否限时精选;0否1是 | false | - |
categoryLevel | int32 | 商品类别等级,商品类别id存在时不能为空 | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/goods/open/page?state=2hd09l&categoryLevel=925&orderField=hcyx1h&pageSize=10&order=oxbiic&limited=f2v95j&categoryId=770&goodsName=旭尧.龙&hot=ljt6su&curPage=1Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | 商品id | - |
└─name | string | 商品名称 | - |
└─state | string | 商品状态;0下架 1在售 2 待审核 | - |
└─imgs | string | 商品图片地址;多张图片使用,分割 | - |
└─price | number | 销售价格 | - |
└─marketPrice | number | 市场价格 | - |
└─limit | int32 | 限购数量 | - |
└─stockNum | int32 | 库存数量 | - |
└─collectCnt | int32 | 收藏量 | - |
└─saleCnt | int32 | 已售量 | - |
└─visitCnt | int32 | 浏览量 | - |
└─shareCnt | int32 | 分享量 | - |
└─showCollect | string | 是否显示收藏数量;0隐藏 1显示 | - |
└─showSale | string | 是否显示已售数量;0隐藏 1显示 | - |
└─showVisit | string | 是否显示访问数量;0隐藏 1显示 | - |
└─showShare | string | 是否显示分享数量;0隐藏 1显示 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 395,
"name": "旭尧.龙",
"state": "s2u3in",
"imgs": "s4qcp2",
"price": 500,
"marketPrice": 4,
"limit": 10,
"stockNum": 717,
"collectCnt": 976,
"saleCnt": 219,
"visitCnt": 35,
"shareCnt": 757,
"showCollect": "fvbeey",
"showSale": "xf139o",
"showVisit": "fi95yy",
"showShare": "yuellw"
}
}12.2. 商品详情(app端)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 商品详情(app端)
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 商品id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/goods/open/959Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | 商品id | - |
└─name | string | 商品名称 | - |
└─state | string | 商品状态;0下架 1在售 2 待审核 | - |
└─imgs | string | 商品图片地址;多张图片使用,分割 | - |
└─price | number | 销售价格 | - |
└─marketPrice | number | 市场价格 | - |
└─limit | int32 | 限购数量 | - |
└─stockNum | int32 | 库存数量 | - |
└─collectCnt | int32 | 收藏量 | - |
└─saleCnt | int32 | 已售量 | - |
└─visitCnt | int32 | 浏览量 | - |
└─shareCnt | int32 | 分享量 | - |
└─showCollect | string | 是否显示收藏数量;0隐藏 1显示 | - |
└─showSale | string | 是否显示已售数量;0隐藏 1显示 | - |
└─showVisit | string | 是否显示访问数量;0隐藏 1显示 | - |
└─showShare | string | 是否显示分享数量;0隐藏 1显示 | - |
└─desc | string | 商品详情 | - |
└─goodsServiceTags | array | 服务标签 | - |
└─id | int64 | 标签id | - |
└─tagName | string | 标签名称 | - |
└─tagDesc | string | 标签描述 | - |
└─enableSku | string | 是否开启sku;1是0否 | - |
└─skuGroups | array | sku分组列表 使用分组属性交集确定skuId | - |
└─attrName | string | 属性名称 | - |
└─attrValues | array | 属性值列表 | - |
└─attrValue | string | 属性值 | - |
└─skuIds | string | 具有该属性值的skuId集合 skuId直接使用,分割 | - |
└─skus | array | sku信息列表 | - |
└─skuId | int64 | 商品skuId | - |
└─goodsId | int64 | 商品id | - |
└─skuName | string | sku名称 | - |
└─skuDesc | string | sku介绍描述 | - |
└─skuImg | string | sku图片 | - |
└─price | number | 销售价格 | - |
└─marketPrice | number | 市场价格 | - |
└─stockNum | int32 | 库存数量 | - |
└─state | string | 状态;0不可售 1可售 | - |
└─saleAttrs | array | 销售属性 | - |
└─attrId | int64 | id | - |
└─goodSkuId | int64 | 商品skuId | - |
└─attrName | string | 销售属性名 | - |
└─attrValue | string | 销售属性值 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 908,
"name": "旭尧.龙",
"state": "u4le1n",
"imgs": "gpug22",
"price": 117,
"marketPrice": 345,
"limit": 10,
"stockNum": 439,
"collectCnt": 602,
"saleCnt": 15,
"visitCnt": 664,
"shareCnt": 753,
"showCollect": "awz1ar",
"showSale": "zibgvt",
"showVisit": "crpb93",
"showShare": "npqtux",
"desc": "fia3mn",
"goodsServiceTags": [
{
"id": 590,
"tagName": "旭尧.龙",
"tagDesc": "npgrin"
}
],
"enableSku": "is3i6i",
"skuGroups": [
{
"attrName": "旭尧.龙",
"attrValues": [
{
"attrValue": "lb8x79",
"skuIds": "ccd472c0-8af1-4b51-ab60-0c43e4493775"
}
]
}
],
"skus": [
{
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"goodsId": 138,
"skuName": "旭尧.龙",
"skuDesc": "bz1xnc",
"skuImg": "08vi3w",
"price": 578,
"marketPrice": 486,
"stockNum": 497,
"state": "c9mlso",
"saleAttrs": [
{
"attrId": 63,
"goodSkuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"attrName": "旭尧.龙",
"attrValue": "xeehnl"
}
]
}
]
}
}12.3. 商品列表(管理端)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 商品列表(管理端)
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
goodsName | string | 商品名称,模糊搜索 | false | - |
state | string | 商品状态 0下架 1在售 2 待审核 | false | - |
categoryId | int64 | 商品类别id,精确搜索 | false | - |
hot | string | 是否热门推荐;0否1是 | false | - |
limited | string | 是否限时精选;0否1是 | false | - |
categoryLevel | int32 | 商品类别等级,商品类别id存在时不能为空 | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/goods/admin/list?state=r37uxf&categoryId=903&curPage=1&categoryLevel=501&goodsName=旭尧.龙&orderField=y3cuvv&order=n1ve8g&hot=ipzvxd&pageSize=10&limited=lwvwiqResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | 商品id | - |
└─name | string | 商品名称 | - |
└─state | string | 商品状态;0下架 1在售 2 待审核 | - |
└─imgs | string | 商品图片地址;多张图片使用,分割 | - |
└─price | number | 销售价格 | - |
└─marketPrice | number | 市场价格 | - |
└─limit | int32 | 限购数量 | - |
└─stockNum | int32 | 库存数量 | - |
└─collectCnt | int32 | 收藏量 | - |
└─saleCnt | int32 | 已售量 | - |
└─visitCnt | int32 | 浏览量 | - |
└─shareCnt | int32 | 分享量 | - |
└─showCollect | string | 是否显示收藏数量;0隐藏 1显示 | - |
└─showSale | string | 是否显示已售数量;0隐藏 1显示 | - |
└─showVisit | string | 是否显示访问数量;0隐藏 1显示 | - |
└─showShare | string | 是否显示分享数量;0隐藏 1显示 | - |
└─hot | string | 是否热门推荐;0否1是 | - |
└─limited | string | 是否限时精选;0否1是 | - |
└─sort | int32 | 排序 | - |
└─goodsServiceTags | array | 服务标签 | - |
└─id | int64 | 标签id | - |
└─tagName | string | 标签名称 | - |
└─tagDesc | string | 标签描述 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 214,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 932,
"name": "旭尧.龙",
"state": "lfmz3x",
"imgs": "rrwo2y",
"price": 559,
"marketPrice": 461,
"limit": 10,
"stockNum": 163,
"collectCnt": 923,
"saleCnt": 174,
"visitCnt": 491,
"shareCnt": 965,
"showCollect": "ujlrk2",
"showSale": "guugun",
"showVisit": "776g18",
"showShare": "q55h31",
"hot": "f1lcwy",
"limited": "rhkufm",
"sort": 743,
"goodsServiceTags": [
{
"id": 586,
"tagName": "旭尧.龙",
"tagDesc": "d22rj3"
}
]
}
]
}
}12.4. 删除商品
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除商品
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | 商品id集合,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goods/admin --data '[
317,
530
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}12.5. 修改商品排序
Type: PUT
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 修改商品排序
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 商品id | true | - |
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
sort | int32 | 新排序,不能小于0 | true | - |
Request-example:
curl -X PUT -i http://localhost:10000/cloud-mall/goods/admin/sort/360 --data 'sort=0'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}12.6. 商品热门/精选状态修改
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 商品热门/精选状态修改
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
action | string | 操作种类:1热门推荐、2限时精选 | true | - |
goodIds | array | 商品id集合 | true | - |
type | string | 操作类型:1新增、2取消 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goods/admin/hot-limited-change? --data '{
"action": "6lrl46",
"goodIds": [
680
],
"type": "taplwx"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}12.7. 商品详情(管理员端)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 商品详情(管理员端)
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 商品id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/goods/admin/info/276Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | 商品id | - |
└─name | string | 商品名称 | - |
└─state | string | 商品状态;0下架 1在售 2 待审核 | - |
└─imgs | string | 商品图片地址;多张图片使用,分割 | - |
└─price | number | 销售价格 | - |
└─marketPrice | number | 市场价格 | - |
└─limit | int32 | 限购数量 | - |
└─stockNum | int32 | 库存数量 | - |
└─collectCnt | int32 | 收藏量 | - |
└─saleCnt | int32 | 已售量 | - |
└─visitCnt | int32 | 浏览量 | - |
└─shareCnt | int32 | 分享量 | - |
└─showCollect | string | 是否显示收藏数量;0隐藏 1显示 | - |
└─showSale | string | 是否显示已售数量;0隐藏 1显示 | - |
└─showVisit | string | 是否显示访问数量;0隐藏 1显示 | - |
└─showShare | string | 是否显示分享数量;0隐藏 1显示 | - |
└─categoryOneId | int64 | 一级分类id | - |
└─categoryTwoId | int64 | 二级分类id | - |
└─brandId | int64 | 品牌id | - |
└─sort | int32 | 排序 | - |
└─enableSku | string | 是否开启sku;开启sku后使用sku价格 | - |
└─hot | string | 是否热门推荐;0否1是 | - |
└─limited | string | 是否限时精选;0否1是 | - |
└─desc | string | 商品详情 | - |
└─goodsServiceTags | array | 服务标签 | - |
└─id | int64 | 标签id | - |
└─tagName | string | 标签名称 | - |
└─tagDesc | string | 标签描述 | - |
└─skuGroups | array | sku分组列表 使用分组属性交集确定skuId | - |
└─attrName | string | 属性名称 | - |
└─attrValues | array | 属性值列表 | - |
└─attrValue | string | 属性值 | - |
└─skuIds | string | 具有该属性值的skuId集合 skuId直接使用,分割 | - |
└─skus | array | sku信息列表 | - |
└─skuId | int64 | 商品skuId | - |
└─goodsId | int64 | 商品id | - |
└─skuName | string | sku名称 | - |
└─skuDesc | string | sku介绍描述 | - |
└─skuImg | string | sku图片 | - |
└─price | number | 销售价格 | - |
└─marketPrice | number | 市场价格 | - |
└─stockNum | int32 | 库存数量 | - |
└─state | string | 状态;0不可售 1可售 | - |
└─saleAttrs | array | 销售属性 | - |
└─attrId | int64 | id | - |
└─goodSkuId | int64 | 商品skuId | - |
└─attrName | string | 销售属性名 | - |
└─attrValue | string | 销售属性值 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 308,
"name": "旭尧.龙",
"state": "0qwuvp",
"imgs": "bps86g",
"price": 598,
"marketPrice": 807,
"limit": 10,
"stockNum": 417,
"collectCnt": 459,
"saleCnt": 433,
"visitCnt": 426,
"shareCnt": 550,
"showCollect": "e34ueb",
"showSale": "w2uek8",
"showVisit": "czjhep",
"showShare": "p957q3",
"categoryOneId": 484,
"categoryTwoId": 913,
"brandId": 188,
"sort": 7,
"enableSku": "20sn3f",
"hot": "mj3jir",
"limited": "ktz4yn",
"desc": "gjcna2",
"goodsServiceTags": [
{
"id": 377,
"tagName": "旭尧.龙",
"tagDesc": "tpthrk"
}
],
"skuGroups": [
{
"attrName": "旭尧.龙",
"attrValues": [
{
"attrValue": "7e9y1u",
"skuIds": "ccd472c0-8af1-4b51-ab60-0c43e4493775"
}
]
}
],
"skus": [
{
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"goodsId": 195,
"skuName": "旭尧.龙",
"skuDesc": "iljooj",
"skuImg": "yfdh0y",
"price": 138,
"marketPrice": 740,
"stockNum": 52,
"state": "emymix",
"saleAttrs": [
{
"attrId": 486,
"goodSkuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"attrName": "旭尧.龙",
"attrValue": "3g7lt6"
}
]
}
]
}
}12.8. 新增商品
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增商品
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 商品id,修改时不能为空 | false | - |
categoryOneId | int64 | 一级分类id | true | - |
categoryTwoId | int64 | 二级分类id | true | - |
name | string | 商品名称 | true | - |
sort | int32 | 排序 | true | - |
hot | string | 是否热门推荐;0否1是 | true | - |
limited | string | 是否限时精选;0否1是 | true | - |
state | string | 商品状态;0下架 1在售 2 待审核 | true | - |
imgs | string | 商品图片地址,第一张图片为商品主图;多张图片使用,分割 | true | - |
price | number | 销售价格 | true | - |
marketPrice | number | 市场价格 | true | - |
limit | int32 | 限购数量,0为不限购 | true | - |
stockNum | int32 | 库存数量 | true | - |
collectCnt | int32 | 收藏量 | true | - |
saleCnt | int32 | 已售量 | true | - |
visitCnt | int32 | 浏览量 | true | - |
shareCnt | int32 | 分享量 | true | - |
showCollect | string | 是否显示收藏数量;0隐藏 1显示 | true | - |
showSale | string | 是否显示已售数量;0隐藏 1显示 | true | - |
showVisit | string | 是否显示访问数量;0隐藏 1显示 | true | - |
showShare | string | 是否显示分享数量;0隐藏 1显示 | true | - |
desc | string | 商品详情 | true | - |
serviceTagIds | array | 服务标签id集合 | false | - |
enableSku | string | 是否开启sku;1是0否 | true | - |
skus | array | sku集合,开启sku后该值不能为空 | false | - |
└─skuId | int64 | skuId,修改时不能为空 | false | - |
└─skuName | string | sku名称 销售属性值使用 + 拼接 | true | - |
└─skuDesc | string | sku描述 | false | - |
└─skuImg | string | sku图片 | true | - |
└─price | number | 销售价格 | true | - |
└─marketPrice | number | 市场价格 | true | - |
└─stockNum | int64 | 库存 | true | - |
└─state | string | 状态;0不可售 1可售 | true | - |
└─saleAttrs | array | 销售属性 | true | - |
└─attrId | int64 | 属性id,修改时不能为空 | false | - |
└─skuId | int64 | skuId | false | - |
└─attrName | string | 属性名称 | true | - |
└─attrValue | string | 属性值 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goods/admin/add? --data '{
"id": 724,
"categoryOneId": 714,
"categoryTwoId": 570,
"name": "旭尧.龙",
"sort": 832,
"hot": "k37kxz",
"limited": "0wy8li",
"state": "x1zjep",
"imgs": "o81gpx",
"price": 619,
"marketPrice": 916,
"limit": 10,
"stockNum": 187,
"collectCnt": 114,
"saleCnt": 608,
"visitCnt": 948,
"shareCnt": 267,
"showCollect": "0g9yqx",
"showSale": "5dbihp",
"showVisit": "m67827",
"showShare": "t8jxjd",
"desc": "p455hh",
"serviceTagIds": [
807
],
"enableSku": "bs2whn",
"skus": [
{
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"skuName": "旭尧.龙",
"skuDesc": "1pc5p0",
"skuImg": "e9cc4o",
"price": 825,
"marketPrice": 758,
"stockNum": 932,
"state": "jmx8yz",
"saleAttrs": [
{
"attrId": 347,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"attrName": "旭尧.龙",
"attrValue": "rr3p2i"
}
]
}
]
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}12.9. 修改商品
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改商品
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 商品id,修改时不能为空 | false | - |
categoryOneId | int64 | 一级分类id | true | - |
categoryTwoId | int64 | 二级分类id | true | - |
name | string | 商品名称 | true | - |
sort | int32 | 排序 | true | - |
hot | string | 是否热门推荐;0否1是 | true | - |
limited | string | 是否限时精选;0否1是 | true | - |
state | string | 商品状态;0下架 1在售 2 待审核 | true | - |
imgs | string | 商品图片地址,第一张图片为商品主图;多张图片使用,分割 | true | - |
price | number | 销售价格 | true | - |
marketPrice | number | 市场价格 | true | - |
limit | int32 | 限购数量,0为不限购 | true | - |
stockNum | int32 | 库存数量 | true | - |
collectCnt | int32 | 收藏量 | true | - |
saleCnt | int32 | 已售量 | true | - |
visitCnt | int32 | 浏览量 | true | - |
shareCnt | int32 | 分享量 | true | - |
showCollect | string | 是否显示收藏数量;0隐藏 1显示 | true | - |
showSale | string | 是否显示已售数量;0隐藏 1显示 | true | - |
showVisit | string | 是否显示访问数量;0隐藏 1显示 | true | - |
showShare | string | 是否显示分享数量;0隐藏 1显示 | true | - |
desc | string | 商品详情 | true | - |
serviceTagIds | array | 服务标签id集合 | false | - |
enableSku | string | 是否开启sku;1是0否 | true | - |
skus | array | sku集合,开启sku后该值不能为空 | false | - |
└─skuId | int64 | skuId,修改时不能为空 | false | - |
└─skuName | string | sku名称 销售属性值使用 + 拼接 | true | - |
└─skuDesc | string | sku描述 | false | - |
└─skuImg | string | sku图片 | true | - |
└─price | number | 销售价格 | true | - |
└─marketPrice | number | 市场价格 | true | - |
└─stockNum | int64 | 库存 | true | - |
└─state | string | 状态;0不可售 1可售 | true | - |
└─saleAttrs | array | 销售属性 | true | - |
└─attrId | int64 | 属性id,修改时不能为空 | false | - |
└─skuId | int64 | skuId | false | - |
└─attrName | string | 属性名称 | true | - |
└─attrValue | string | 属性值 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goods/admin/update? --data '{
"id": 964,
"categoryOneId": 479,
"categoryTwoId": 534,
"name": "旭尧.龙",
"sort": 153,
"hot": "9plucv",
"limited": "cd0bi4",
"state": "tlkdh5",
"imgs": "xkncz0",
"price": 386,
"marketPrice": 611,
"limit": 10,
"stockNum": 514,
"collectCnt": 161,
"saleCnt": 37,
"visitCnt": 318,
"shareCnt": 340,
"showCollect": "igu1gu",
"showSale": "m9yeof",
"showVisit": "0z14i5",
"showShare": "305ffq",
"desc": "8159sf",
"serviceTagIds": [
77
],
"enableSku": "896z4s",
"skus": [
{
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"skuName": "旭尧.龙",
"skuDesc": "dr6ilu",
"skuImg": "wezlcw",
"price": 661,
"marketPrice": 213,
"stockNum": 670,
"state": "56fa3c",
"saleAttrs": [
{
"attrId": 267,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"attrName": "旭尧.龙",
"attrValue": "kln44f"
}
]
}
]
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}12.10. 商品下架
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 商品下架
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | 商品id集合,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goods/admin/off --data '[
93,
863
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}12.11. 商品上架
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 商品上架
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | 商品id集合,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/goods/admin/online --data '[
870,
322
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}12.12. 商品浏览量+1
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 商品浏览量+1
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
goodsId | string | No comments found. | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/goods/open/share-increase/14Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}13. 导航(金刚区)
13.1. 导航列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 导航列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/navigation/open/list?pageSize=10&order=ufw0bh&curPage=1&orderField=b7vgcrResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id,修改时不能为空 | - |
└─name | string | 类别名称 | - |
└─iconName | string | 图标地址 | - |
└─remark | string | 备注 | - |
└─sort | int32 | 排序 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─type | string | 类别;0不跳转 1跳转页面 2跳转网页 | - |
└─url | string | 跳转地址;type不为0时不能为空 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 62,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"createBy": 628,
"createTime": "2024-04-15 22:38:18",
"updateTime": "2024-04-15 22:38:18",
"updateBy": 645,
"id": 580,
"name": "旭尧.龙",
"iconName": "旭尧.龙",
"remark": "w96vu1",
"sort": 0,
"state": "doqulb",
"type": "6p5x9c",
"url": "www.xn---xn--x8s-r93q.io"
}
]
}
}13.2. 导航详情
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 导航详情
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | No comments found. | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/navigation/admin/info/627Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id,修改时不能为空 | - |
└─name | string | 类别名称 | - |
└─iconName | string | 图标地址 | - |
└─remark | string | 备注 | - |
└─sort | int32 | 排序 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─type | string | 类别;0不跳转 1跳转页面 2跳转网页 | - |
└─url | string | 跳转地址;type不为0时不能为空 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"createBy": 317,
"createTime": "2024-04-15 22:38:18",
"updateTime": "2024-04-15 22:38:18",
"updateBy": 361,
"id": 306,
"name": "旭尧.龙",
"iconName": "旭尧.龙",
"remark": "wkmege",
"sort": 165,
"state": "4ccuan",
"type": "x5f6eg",
"url": "www.xn---xn--x8s-r93q.io"
}
}13.3. 新增导航
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增导航
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,修改时不能为空 | false | - |
name | string | 类别名称 | true | - |
iconName | string | 图标地址 | true | - |
remark | string | 备注 | false | - |
sort | int32 | 排序 | true | - |
state | string | 状态;0禁用 1启用 | false | - |
type | string | 类别;0不跳转 1跳转页面 2跳转网页 | true | - |
url | string | 跳转地址;type不为0时不能为空 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/navigation/admin/add? --data '{
"createBy": 855,
"createTime": "2024-04-15 22:38:18",
"updateTime": "2024-04-15 22:38:18",
"updateBy": 58,
"id": 995,
"name": "旭尧.龙",
"iconName": "旭尧.龙",
"remark": "kuvg7e",
"sort": 257,
"state": "ub0xd6",
"type": "iqlmex",
"url": "www.xn---xn--x8s-r93q.io"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}13.4. 修改导航
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改导航
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,修改时不能为空 | false | - |
name | string | 类别名称 | true | - |
iconName | string | 图标地址 | true | - |
remark | string | 备注 | false | - |
sort | int32 | 排序 | true | - |
state | string | 状态;0禁用 1启用 | false | - |
type | string | 类别;0不跳转 1跳转页面 2跳转网页 | true | - |
url | string | 跳转地址;type不为0时不能为空 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/navigation/admin/update? --data '{
"createBy": 190,
"createTime": "2024-04-15 22:38:18",
"updateTime": "2024-04-15 22:38:18",
"updateBy": 234,
"id": 437,
"name": "旭尧.龙",
"iconName": "旭尧.龙",
"remark": "0hpge4",
"sort": 165,
"state": "duqevl",
"type": "8dhx0k",
"url": "www.xn---xn--x8s-r93q.io"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}13.5. 删除导航
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除导航
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/navigation/admin/delete --data '[
133,
336
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}14. 订单收货人信息
14.1. 查看订单收货信息
Type: POST
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 查看订单收货信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/orderConsignee/admin/info/72Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─orderId | int64 | 订单id | - |
└─orderConsignee | string | 收货人姓名 | - |
└─orderConsigneeTel | string | 收货人电话 | - |
└─orderConsigneeProvince | string | 收货人省 | - |
└─orderConsigneeCity | string | 收货人市 | - |
└─orderConsigneeDistrict | string | 收货人区县 | - |
└─orderConsigneeAddrDetail | string | 收货人详细地址 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 227,
"orderId": 522,
"orderConsignee": "ytwtck",
"orderConsigneeTel": "mvv2z4",
"orderConsigneeProvince": "95cx3t",
"orderConsigneeCity": "8p406s",
"orderConsigneeDistrict": "xrw9rd",
"orderConsigneeAddrDetail": "gsatkj"
}
}14.2. 修改订单收货信息
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改订单收货信息
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
orderId | int64 | 订单id | false | - |
orderConsignee | string | 收货人姓名 | false | - |
orderConsigneeTel | string | 收货人电话 | false | - |
orderConsigneeProvince | string | 收货人省 | false | - |
orderConsigneeCity | string | 收货人市 | false | - |
orderConsigneeDistrict | string | 收货人区县 | false | - |
orderConsigneeAddrDetail | string | 收货人详细地址 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/orderConsignee/admin/update? --data '{
"id": 75,
"orderId": 411,
"orderConsignee": "35qmnk",
"orderConsigneeTel": "zosm1i",
"orderConsigneeProvince": "o6914u",
"orderConsigneeCity": "20nxvc",
"orderConsigneeDistrict": "eup7sr",
"orderConsigneeAddrDetail": "4ld95l"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}15. 订单
15.1. 确认订单
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 确认订单
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
type | string | 类型 1直接购买订单确认、2购物车创建订单确认 | true | - |
goodId | int64 | 商品id type为1时该值不能为空 | false | - |
skuId | int64 | skuId type为1且商品开启sku时该值不能为空 | false | - |
num | int32 | 购买数量 type为1时该值不能为空 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/order/user/order/confirm? --data '{
"type": "tle2yd",
"goodId": 500,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"num": 736
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─address | object | 地址信息 | - |
└─id | int64 | id | - |
└─userId | string | 用户id | - |
└─receiverName | string | 收件人名字 | - |
└─phoneNum | string | 手机号 | - |
└─province | string | 省 | - |
└─city | string | 市 | - |
└─county | string | 区县 | - |
└─address | string | 地址详情 | - |
└─defaultFlag | string | 是否默认;0否 1是 | - |
└─createBy | string | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | string | 更新人 | - |
└─orderDetails | array | 商品信息列表 | - |
└─goodsId | int64 | 商品id | - |
└─skuId | int64 | skuId | - |
└─goodsName | string | 商品名称 | - |
└─goodsMasterImg | string | 商品图片 | - |
└─goodsAttr | string | 商品属性 | - |
└─goodsCount | int32 | 购买数量 | - |
└─goodsActualPrice | number | 商品购买价格 | - |
└─goodsTotalAmt | number | 商品价格小计 | - |
└─token | object | 防重令牌 | - |
└─token | string | token | - |
└─ttl | int64 | 过期时间 | - |
└─orderAmount | number | 订单总金额 | - |
└─deliveryFee | number | 快递费 | - |
└─discountAmount | number | 优惠价格 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"address": {
"id": 277,
"userId": "14",
"receiverName": "旭尧.龙",
"phoneNum": "dj98vv",
"province": "idii7r",
"city": "n1a28s",
"county": "r9blec",
"address": "Suite 295 田中心969号, 长沙, 黑 483066",
"defaultFlag": "o101gq",
"createBy": "yjug8z",
"createTime": "2024-04-15 22:38:18",
"updateTime": "2024-04-15 22:38:18",
"updateBy": "8hxs3q"
},
"orderDetails": [
{
"goodsId": 670,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"goodsName": "旭尧.龙",
"goodsMasterImg": "y4j8r7",
"goodsAttr": "7uragj",
"goodsCount": 781,
"goodsActualPrice": 73,
"goodsTotalAmt": 475
}
],
"token": {
"token": "y5skvf",
"ttl": 122
},
"orderAmount": 176,
"deliveryFee": 339,
"discountAmount": 783
}
}15.2. 提交订单
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 提交订单
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
submitToken | string | 提交令牌(防重提交) | true | - |
userAddressId | int64 | 用户地址id | true | - |
buyerRemark | string | 买家备注 | false | - |
orderPaidAmt | number | 订单实际付款金额 用于价格校验 | true | - |
submitType | string | 提交类型 1直接创建订单、2购物车创建订单 | true | - |
orderFrom | string | 订单来源;1小程序 2公众号 3其它 | true | - |
orderDetails | array | 商品列表 | true | - |
└─goodsId | int64 | 商品id | false | - |
└─skuId | int64 | skuId 商品开启sku后该值不能为空 | false | - |
└─goodsCount | int32 | 商品数量 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/order/user/order/submit? --data '{
"submitToken": "cz8wjr",
"userAddressId": 219,
"buyerRemark": "cotc7l",
"orderPaidAmt": 242,
"submitType": "t2obm8",
"orderFrom": "e74lgv",
"orderDetails": [
{
"goodsId": 314,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"goodsCount": 112
}
]
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─orderId | int64 | 订单id | - |
└─orderAmount | number | 订单金额 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"orderId": 79,
"orderAmount": 377
}
}15.3. 订单列表(app端)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单列表(app端),orderState可选值:1等待付款、2等待发货、3等待收货、4等待评论、5完成、7全部
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
orderState | string | 订单状态,默认为7 | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/order/user/list?orderState=7&curPage=1&orderField=u5822d&pageSize=10&order=tourr2Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─orderId | int64 | 订单id | - |
└─totalPrice | number | 订单总价 | - |
└─state | string | 订单状态;1等待付款、2等待发货、3等待收货、4等待评论、5完成、6取消、0售后 | - |
└─createTime | string | 下单时间 | - |
└─orderDetails | array | 订单商品详情列表 | - |
└─goodsId | int64 | 商品id | - |
└─skuId | int64 | skuId | - |
└─goodsName | string | 商品名称 | - |
└─goodsMasterImg | string | 商品图片 | - |
└─goodsAttr | string | 商品属性 | - |
└─goodsCount | int32 | 购买数量 | - |
└─goodsActualPrice | number | 商品购买价格 | - |
└─goodsTotalAmt | number | 商品价格小计 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 386,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"orderId": 313,
"totalPrice": 836,
"state": "cyo1is",
"createTime": "2024-04-15 22:38:19",
"orderDetails": [
{
"goodsId": 761,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"goodsName": "旭尧.龙",
"goodsMasterImg": "cnc4ar",
"goodsAttr": "imf6w9",
"goodsCount": 160,
"goodsActualPrice": 800,
"goodsTotalAmt": 163
}
]
}
]
}
}15.4. 订单详情
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户端订单详情
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 订单id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/order/user/info/375Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─orderId | int64 | 订单id | - |
└─orderNo | string | 订单号 | - |
└─orderActualPrice | number | 订单实际付款金额 | - |
└─orderPrice | number | 订单价格 | - |
└─state | string | 订单状态;1等待付款、2等待发货、3等待收货、4等待评论、5完成、6取消、0售后 | - |
└─createTime | string | 下单时间 | - |
└─updateTime | string | 订单最后更新时间 | - |
└─payWay | string | 支付方式 1 微信支付 2余额支付 3支付宝 4网银 5其他 | - |
└─payNo | string | 支付编号 | - |
└─orderConsignee | string | 收货人姓名 | - |
└─orderConsigneeTel | string | 收货人电话 | - |
└─orderConsigneeProvince | string | 收货人省 | - |
└─orderConsigneeCity | string | 收货人市 | - |
└─orderConsigneeDistrict | string | 收货人区县 | - |
└─orderConsigneeAddrDetail | string | 收货人详细地址 | - |
└─orderDetails | array | 订单商品详情列表 | - |
└─goodsId | int64 | 商品id | - |
└─skuId | int64 | skuId | - |
└─goodsName | string | 商品名称 | - |
└─goodsMasterImg | string | 商品图片 | - |
└─goodsAttr | string | 商品属性 | - |
└─goodsCount | int32 | 购买数量 | - |
└─goodsActualPrice | number | 商品购买价格 | - |
└─goodsTotalAmt | number | 商品价格小计 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"orderId": 725,
"orderNo": "wyvxri",
"orderActualPrice": 811,
"orderPrice": 687,
"state": "2jh3ne",
"createTime": "2024-04-15 22:38:19",
"updateTime": "2024-04-15 22:38:19",
"payWay": "ssqz4y",
"payNo": "iiq0n7",
"orderConsignee": "qwl4q4",
"orderConsigneeTel": "7k9riy",
"orderConsigneeProvince": "sa5xpk",
"orderConsigneeCity": "hjgyl9",
"orderConsigneeDistrict": "fnr7qg",
"orderConsigneeAddrDetail": "bbz0a9",
"orderDetails": [
{
"goodsId": 418,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"goodsName": "旭尧.龙",
"goodsMasterImg": "gz6qa6",
"goodsAttr": "2nzyps",
"goodsCount": 465,
"goodsActualPrice": 779,
"goodsTotalAmt": 15
}
]
}
}15.5. 取消订单
Type: PUT
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户端取消订单,注意订单支付后不可取消
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 订单id | true | - |
Request-example:
curl -X PUT -i http://localhost:10000/cloud-mall/order/user/cancel/869Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}15.6. 确认收货
Type: PUT
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户确认收货
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 订单id | true | - |
Request-example:
curl -X PUT -i http://localhost:10000/cloud-mall/order/user/receipt/822Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}15.7. 申请退款
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 用户申请退款,只有待发货状态的订单才能申请退款
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 订单id | true | - |
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
goodsState | string | 货物状态 | true | - |
refundReason | string | 退款原因 | true | - |
refundAmt | number | 退款金额 | true | - |
remark | string | 退款说明 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/order/user/apply/refund/283? --data '{
"goodsState": "yb3ls6",
"refundReason": "bvaxfm",
"refundAmt": 843,
"remark": "m2pgz0"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}15.8. 删除订单
Type: DELETE
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户端删除订单,注意订单在取消状态下才能被删除
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 订单id | true | - |
Request-example:
curl -X DELETE -i http://localhost:10000/cloud-mall/order/user/delete/757Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}15.9. 订单列表(管理端)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单列表(管理端)
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
state | string | 状态,精确搜索 1等待付款、2等待发货、3等待收货、4等待评论、5完成、7全部 | false | - |
orderNo | string | 订单号,模糊搜索 | false | - |
userName | string | 下单人姓名,模糊搜索 | false | - |
userPhone | string | 下单人手机号,精确搜索 | false | - |
orderConsignee | string | 收货人姓名,模糊搜索 | false | - |
orderConsigneeTel | string | 收货人手机号,精确搜索 | false | - |
payWay | string | 支付方式 1 微信支付 2余额支付 3支付宝 4网银 5其他 | false | - |
startTime | string | 下单时间-开始 yyyy-MM-dd | false | - |
endTime | string | 下单时间-结束 | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/order/admin/list?pageSize=10&orderNo=6a6lh1&curPage=1&orderConsignee=18s27l&userName=旭尧.龙&endTime=2024-04-15&payWay=s3445o&order=3x6vx5&orderConsigneeTel=646yg6&state=0ipft1&startTime=2024-04-15&orderField=wt3p2n&userPhone=15361099981Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | 订单id | - |
└─orderNo | string | 订单编号 | - |
└─orderPrice | number | 订单价格 | - |
└─orderActualPrice | number | 订单实际付款金额 | - |
└─orderFrom | string | 订单来源;1小程序 2公众号 3其它 | - |
└─orderGoodsCnt | int32 | 商品数量 | - |
└─payWay | string | 支付方式 1 微信支付 2余额支付 3支付宝 4网银 5其他 | - |
└─state | string | 订单状态;1等待付款、2等待发货、3等待收货、4等待评论、5完成、6取消、0售后 | - |
└─updateTime | string | 订单更新时间(最新操作时间) | - |
└─username | string | 下单用户名 | - |
└─avatar | string | 下单用户头像地址 | - |
└─mobile | string | 下单用户手机号码 | - |
└─orderConsignee | string | 收货人姓名 | - |
└─orderConsigneeTel | string | 收货人电话 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 587,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 277,
"orderNo": "anoar4",
"orderPrice": 48,
"orderActualPrice": 322,
"orderFrom": "ymwwqe",
"orderGoodsCnt": 234,
"payWay": "5449q5",
"state": "nizryc",
"updateTime": "2024-04-15 22:38:19",
"username": "旭尧.龙",
"avatar": "e91r4k",
"mobile": "15830401567",
"orderConsignee": "xrc0rc",
"orderConsigneeTel": "zch7b7"
}
]
}
}15.10. 订单详情(管理端)
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单详情(管理端)
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 订单id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/order/admin/info/215Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | 订单id | - |
└─orderNo | string | 订单编号 | - |
└─orderPrice | number | 订单价格 | - |
└─orderActualPrice | number | 订单实际付款金额 | - |
└─orderFrom | string | 订单来源;1小程序 2公众号 3其它 | - |
└─orderGoodsCnt | int32 | 商品数量 | - |
└─payWay | string | 支付方式 1 微信支付 2余额支付 3支付宝 4网银 5其他 | - |
└─state | string | 订单状态;1等待付款、2等待发货、3等待收货、4等待评论、5完成、6取消、0售后 | - |
└─remark | string | 订单备注 | - |
└─createTime | string | 下单时间 | - |
└─username | string | 下单用户名 | - |
└─avatar | string | 下单用户头像地址 | - |
└─mobile | string | 下单用户手机号码 | - |
└─orderConsignee | string | 收货人姓名 | - |
└─orderConsigneeTel | string | 收货人电话 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 938,
"orderNo": "ngl33l",
"orderPrice": 802,
"orderActualPrice": 655,
"orderFrom": "759q2z",
"orderGoodsCnt": 575,
"payWay": "cttkfu",
"state": "yqvk01",
"remark": "1djjfb",
"createTime": "2024-04-15 22:38:19",
"username": "旭尧.龙",
"avatar": "fuwyq4",
"mobile": "15830401567",
"orderConsignee": "wdqi25",
"orderConsigneeTel": "u5g3rf"
}
}15.11. 订单统计
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 查询指定范围时间内订指定状态的所有订单总金额。state可选值:2等待发货、3等待收货、4等待评论、5完成,如果不传,则查询所有状态为2、3、4、5的所有订单总金额
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
state | string | 订单状态 详情查看接口注释 | false | - |
startTime | string | 下单时间-开始 yyyy-MM-dd | false | - |
endTime | string | 下单时间-结束 | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/order/admin/order-statistics?endTime=2024-04-15&startTime=2024-04-15&state=oerxyjResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─startTime | string | 下单时间-开始 yyyy-MM-dd | - |
└─endTime | string | 下单时间-结束 | - |
└─totalAmount | number | 总金额 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"startTime": "2024-04-15",
"endTime": "2024-04-15",
"totalAmount": 877
}
}15.12. 订单改价(管理端)
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 只有待付款状态下的订单才能改价
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
newPrice | number | 新价格 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/order/admin/modify-price? --data '{
"orderId": 257,
"newPrice": 696
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | 订单id | - |
└─orderNo | string | 订单编号 | - |
└─orderPrice | number | 订单价格 | - |
└─orderActualPrice | number | 订单实际付款金额 | - |
└─orderFrom | string | 订单来源;1小程序 2公众号 3其它 | - |
└─orderGoodsCnt | int32 | 商品数量 | - |
└─payWay | string | 支付方式 1 微信支付 2余额支付 3支付宝 4网银 5其他 | - |
└─state | string | 订单状态;1等待付款、2等待发货、3等待收货、4等待评论、5完成、6取消、0售后 | - |
└─remark | string | 订单备注 | - |
└─createTime | string | 下单时间 | - |
└─username | string | 下单用户名 | - |
└─avatar | string | 下单用户头像地址 | - |
└─mobile | string | 下单用户手机号码 | - |
└─orderConsignee | string | 收货人姓名 | - |
└─orderConsigneeTel | string | 收货人电话 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 532,
"orderNo": "0it1zl",
"orderPrice": 391,
"orderActualPrice": 129,
"orderFrom": "swf03r",
"orderGoodsCnt": 696,
"payWay": "ba6b3e",
"state": "7hvjax",
"remark": "k6oe6k",
"createTime": "2024-04-15 22:38:19",
"username": "旭尧.龙",
"avatar": "qe4fcl",
"mobile": "15830401567",
"orderConsignee": "yimc3d",
"orderConsigneeTel": "528bfz"
}
}15.13. 订单商品列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单商品列表
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 订单id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/order/admin/order/goods/417Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─goodsId | int64 | 商品id | - |
└─skuId | int64 | skuId | - |
└─goodsName | string | 商品名称 | - |
└─goodsMasterImg | string | 商品图片 | - |
└─goodsAttr | string | 商品属性 | - |
└─goodsCount | int32 | 购买数量 | - |
└─goodsActualPrice | number | 商品购买价格 | - |
└─goodsTotalAmt | number | 商品价格小计 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": [
{
"goodsId": 229,
"skuId": ccd472c0-8af1-4b51-ab60-0c43e4493775,
"goodsName": "旭尧.龙",
"goodsMasterImg": "eufbua",
"goodsAttr": "8iokdx",
"goodsCount": 308,
"goodsActualPrice": 427,
"goodsTotalAmt": 949
}
]
}16. 订单物流信息
16.1. 物流信息列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 物流信息列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/orderExpress/admin/list?orderField=ctyzoo&pageSize=10&curPage=1&order=8ywkeoResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id | - |
└─orderId | int64 | 订单id | - |
└─orderConsigneeTel | string | 收货人手机号 | - |
└─expressName | string | 快递公司名称 | - |
└─expressCode | string | 快递公司编码 | - |
└─expressNo | string | 快递单号 | - |
└─detail | string | 在途信息详情;json数组字符串 | - |
└─state | string | 状态;0在途、1 揽收、2疑难、3签收、4退签、5派件、6退回、7转投、8清关、14拒签、99已发货 | - |
└─subFlag | string | 订阅标识 1订阅成功 0未订阅 | - |
└─updateTime | string | 更新时间 | - |
└─lastQueryTime | string | 最后查询时间 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 835,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 254,
"orderId": 362,
"orderConsigneeTel": "kjfcer",
"expressName": "旭尧.龙",
"expressCode": "14635",
"expressNo": "evvh8l",
"detail": "pnq683",
"state": "hqfwp7",
"subFlag": "11qu02",
"updateTime": "2024-04-15 22:38:19",
"lastQueryTime": "2024-04-15 22:38:19"
}
]
}
}16.2. 订单发货
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 订单发货
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderExpressId | int64 | 订单发货物流id,修改时不能为空 | false | - |
orderId | int64 | 订单id | true | - |
expressId | int64 | 快递id | true | - |
expressNo | string | 快递单号 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/orderExpress/admin/delivery? --data '{
"orderExpressId": 699,
"orderId": 612,
"expressId": 708,
"expressNo": "wu99md"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}16.3. 删除发货信息
Type: DELETE
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 删除发货信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 订单发货物流id | true | - |
Request-example:
curl -X DELETE -i http://localhost:10000/cloud-mall/orderExpress/admin/delete/492Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}16.4. 根据订单id查询物流信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 根据订单id查询物流信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/orderExpress/open/order/162Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─orderId | int64 | 订单id | - |
└─orderConsigneeTel | string | 收货人手机号 | - |
└─expressName | string | 快递名称 | - |
└─expressCode | string | 快递编码 | - |
└─expressNo | string | 物流单号 | - |
└─detail | string | 在途信息详情;json数组字符串 | - |
└─subFlag | string | 订阅标识 1订阅成功 0未订阅 | - |
└─lastQueryTime | string | 最后查询时间 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"orderId": 176,
"orderConsigneeTel": "rt8cld",
"expressName": "旭尧.龙",
"expressCode": "14635",
"expressNo": "a9oi1c",
"detail": "y2twtx",
"subFlag": "0pwbbq",
"lastQueryTime": "2024-04-15 22:38:19"
}
}16.5. 根据订单快递id查询物流信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 根据订单快递id查询物流信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderExpressId | int64 | 订单快递id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/orderExpress/open/order-express/494Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─orderId | int64 | 订单id | - |
└─orderConsigneeTel | string | 收货人手机号 | - |
└─expressName | string | 快递名称 | - |
└─expressCode | string | 快递编码 | - |
└─expressNo | string | 物流单号 | - |
└─detail | string | 在途信息详情;json数组字符串 | - |
└─subFlag | string | 订阅标识 1订阅成功 0未订阅 | - |
└─lastQueryTime | string | 最后查询时间 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"orderId": 788,
"orderConsigneeTel": "i50boi",
"expressName": "旭尧.龙",
"expressCode": "14635",
"expressNo": "0t5575",
"detail": "z61ozc",
"subFlag": "h03wub",
"lastQueryTime": "2024-04-15 22:38:19"
}
}16.6. 订阅回调通知
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订阅回调通知
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | No comments found. | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/orderExpress/open/notify?orderId=81Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
any object | object | any object. | - |
Response-example:
{
}17. 支付服务
17.1. 获取微信小程序支付参数
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取微信小程序支付参数
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/pay/wx/user/getJsApiPayParam/913Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─timeStamp | string | 时间戳 | - |
└─nonceStr | string | 随机串 | - |
└─packageStr | string | prepay_id=*** | - |
└─signType | string | 签名类型 | - |
└─paySign | string | 签名 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"timeStamp": "2024-04-15 22:38:16",
"nonceStr": "xwbqzl",
"packageStr": "wy3wb2",
"signType": "99zuog",
"paySign": "xtn3j6"
}
}17.2. 微信支付成功回调(成功后无需响应内容)
Type: POST
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 微信支付成功回调(成功后无需响应内容)
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
headers | object | No comments found. | false | - |
└─headers | object | No comments found. | false | - |
body | object | No comments found. | false | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/pay/wx/open/notifyResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
any object | object | any object. | - |
Response-example:
{
}17.3. 交易结果查询
Type: GET
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 交易结果查询
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
payNo | string | 支付编号 | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/pay/wx/open/queryTrading/hwwvw3Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─tradeState | string | 交易状态 | - |
└─transactionId | string | 微信交易号 | - |
└─successTime | string | 支付成功时间 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"tradeState": "mwoual",
"transactionId": "14",
"successTime": "2024-04-15 22:38:20"
}
}18. 支付订单
18.1. 支付订单列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 支付订单列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
payNo | string | 支付编号 | false | - |
orderId | int64 | 订单id | false | - |
userId | string | 用户id | false | - |
thirdUserId | string | 支付用户id | false | - |
payId | string | 第三方支付订单id | false | - |
payWay | string | 支付途径;1 微信支付 2余额支付 3支付宝 4网银 5其他 | false | - |
state | string | 状态;1 待付款 2已付款 | false | - |
refundFlag | string | 退款标识;0否、1是 | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/payOrder/admin/list?refundFlag=nlbz0t&payWay=gjn0qm&curPage=1&orderField=3tdgwm&pageSize=10&order=pnziqv&state=ds6hzq&payNo=6n8gyn&orderId=242&thirdUserId=14&userId=14&payId=14Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─payNo | string | 支付编号 | - |
└─orderId | int64 | 订单id | - |
└─userId | string | 用户id | - |
└─thirdUserId | string | 支付用户id | - |
└─payId | string | 第三方支付订单id | - |
└─payWay | string | 支付途径;1 微信支付 2余额支付 3支付宝 4网银 5其他 | - |
└─payAmt | number | 支付金额 | - |
└─payTime | string | 支付时间 | - |
└─state | string | 状态;1 待付款 2已付款 | - |
└─refundFlag | string | 退款标识;0否、1是 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 151,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"createBy": 609,
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": 14,
"id": 497,
"payNo": "iu8zbt",
"orderId": 209,
"userId": "14",
"thirdUserId": "14",
"payId": "14",
"payWay": "o2lmb1",
"payAmt": 294,
"payTime": "2024-04-15 22:38:20",
"state": "37nop6",
"refundFlag": "xgt7ef"
}
]
}
}18.2. 订单支付信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单支付信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
orderId | int64 | 订单id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/payOrder/admin/info/188Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─payNo | string | 支付编号 | - |
└─orderId | int64 | 订单id | - |
└─userId | string | 用户id | - |
└─thirdUserId | string | 支付用户id | - |
└─payId | string | 第三方支付订单id | - |
└─payWay | string | 支付途径;1 微信支付 2余额支付 3支付宝 4网银 5其他 | - |
└─payAmt | number | 支付金额 | - |
└─payTime | string | 支付时间 | - |
└─state | string | 状态;1 待付款 2已付款 | - |
└─refundFlag | string | 退款标识;0否、1是 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"createBy": 22,
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": 619,
"id": 900,
"payNo": "uefjrz",
"orderId": 545,
"userId": "14",
"thirdUserId": "14",
"payId": "14",
"payWay": "tjerv7",
"payAmt": 73,
"payTime": "2024-04-15 22:38:20",
"state": "06r47r",
"refundFlag": "2txsov"
}
}18.3. 订单支付信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 订单支付信息
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
payOrderId | int64 | 支付订单id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/payOrder/admin/info/getByPayOrderId?payOrderId=64Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─payNo | string | 支付编号 | - |
└─orderId | int64 | 订单id | - |
└─userId | string | 用户id | - |
└─thirdUserId | string | 支付用户id | - |
└─payId | string | 第三方支付订单id | - |
└─payWay | string | 支付途径;1 微信支付 2余额支付 3支付宝 4网银 5其他 | - |
└─payAmt | number | 支付金额 | - |
└─payTime | string | 支付时间 | - |
└─state | string | 状态;1 待付款 2已付款 | - |
└─refundFlag | string | 退款标识;0否、1是 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"createBy": 608,
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": 368,
"id": 59,
"payNo": "c52tar",
"orderId": 250,
"userId": "14",
"thirdUserId": "14",
"payId": "14",
"payWay": "3jfc0v",
"payAmt": 328,
"payTime": "2024-04-15 22:38:20",
"state": "lw9w2p",
"refundFlag": "jjmrjm"
}
}19. 支付退款
19.1. 支付退款列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 支付退款列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
payOrderId | int64 | 支付订单id | false | - |
payNo | string | 支付订单号 | false | - |
refundNo | string | 退款单号 | false | - |
state | string | 退款状态 1申请成功、2退款成功、3退款异常 | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/payRefund/admin/list?curPage=1&orderField=v6qcj8&pageSize=10&refundNo=z6sjk2&payNo=odywl1&order=gq4oy1&payOrderId=29&state=bohai9Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id | - |
└─payOrderId | int64 | 支付订单id | - |
└─payNo | string | 支付订单号 | - |
└─refundNo | string | 退款单号 | - |
└─refundAmt | number | 退款金额 | - |
└─goodsState | string | 货物状态 | - |
└─refundReason | string | 退款原因 | - |
└─remark | string | 退款说明 | - |
└─state | string | 退款状态 1申请成功、2退款成功、3退款异常、4退款关闭 | - |
└─createTime | string | 创建时间 | - |
└─finishTime | string | 完成时间 | - |
└─userId | int64 | No comments found. | - |
└─userName | string | No comments found. | - |
└─userHead | string | No comments found. | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 310,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 728,
"payOrderId": 273,
"payNo": "3axart",
"refundNo": "me6q4a",
"refundAmt": 924,
"goodsState": "g1cox7",
"refundReason": "keg7wb",
"remark": "12wvm6",
"state": "85f3gb",
"createTime": "2024-04-15 22:38:20",
"finishTime": "2024-04-15 22:38:20",
"userId": 974,
"userName": "旭尧.龙",
"userHead": "lwwioc"
}
]
}
}19.2. 退款详细信息
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 退款详细信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
payOrderId | int64 | 支付订单id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/payRefund/admin/info/737Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─payOrderId | int64 | 支付订单id | - |
└─payNo | string | 支付订单号 | - |
└─refundNo | string | 退款单号 | - |
└─refundAmt | number | 退款金额 | - |
└─goodsState | string | 货物状态 | - |
└─refundReason | string | 退款原因 | - |
└─remark | string | 退款说明 | - |
└─state | string | 退款状态 1申请成功、2退款成功、3退款异常、4退款关闭 | - |
└─createTime | string | 创建时间 | - |
└─finishTime | string | 完成时间 | - |
└─userId | int64 | No comments found. | - |
└─userName | string | No comments found. | - |
└─userHead | string | No comments found. | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 611,
"payOrderId": 614,
"payNo": "jbi61w",
"refundNo": "c7c53i",
"refundAmt": 512,
"goodsState": "44r48y",
"refundReason": "0x6d2e",
"remark": "j82942",
"state": "s4f0om",
"createTime": "2024-04-15 22:38:20",
"finishTime": "2024-04-15 22:38:20",
"userId": 254,
"userName": "旭尧.龙",
"userHead": "y0p89i"
}
}20. 热门搜索
20.1. 历史热门搜索列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 历史热门搜索列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/searchHot/open/list?orderField=mw6ihg&order=9bm6px&pageSize=10&curPage=1Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id | - |
└─keyword | string | 关键字 | - |
└─searchCnt | int32 | 搜索次数 | - |
└─sort | int32 | 排序 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 359,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"createBy": 821,
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": 580,
"id": 198,
"keyword": "eyaadl",
"searchCnt": 834,
"sort": 639
}
]
}
}20.2. 新增热门搜索
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增热门搜索
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id | false | - |
keyword | string | 关键字 | true | - |
searchCnt | int32 | 搜索次数 | true | - |
sort | int32 | 排序 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/searchHot/admin/add? --data '{
"createBy": 487,
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": 307,
"id": 993,
"keyword": "4ihr3s",
"searchCnt": 453,
"sort": 653
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}20.3. 删除热门搜索
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除热门搜索
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/searchHot/admin/delete --data '[
720,
64
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}21. 服务标签
21.1. 服务标签列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 服务标签列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
tagName | string | 标签名称,模糊查询 | false | - |
state | string | 状态; 0禁用 1启用 2全部 | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/serviceTag/admin/list?orderField=cnt04l&state=0fuvdd&pageSize=10&tagName=旭尧.龙&order=s4c7uy&curPage=1Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id,新增时不能为空 | - |
└─tagName | string | 标签名称 | - |
└─tagDesc | string | 标签描述 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─sort | int32 | 排序 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 778,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"createBy": 396,
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": 262,
"id": 505,
"tagName": "旭尧.龙",
"tagDesc": "wst0d3",
"state": "2is07u",
"sort": 155
}
]
}
}21.2. 服务标签信息
Type: POST
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 服务标签信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | No comments found. | true | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/serviceTag/admin/info/964Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─createBy | int64 | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | int64 | 更新人 | - |
└─id | int64 | id,新增时不能为空 | - |
└─tagName | string | 标签名称 | - |
└─tagDesc | string | 标签描述 | - |
└─state | string | 状态;0禁用 1启用 | - |
└─sort | int32 | 排序 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"createBy": 916,
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": 381,
"id": 237,
"tagName": "旭尧.龙",
"tagDesc": "f26ddi",
"state": "9rcl01",
"sort": 450
}
}21.3. 新增服务标签
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增服务标签
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,新增时不能为空 | false | - |
tagName | string | 标签名称 | true | - |
tagDesc | string | 标签描述 | true | - |
state | string | 状态;0禁用 1启用 | true | - |
sort | int32 | 排序 | true | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/serviceTag/admin/add? --data '{
"createBy": 238,
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": 181,
"id": 604,
"tagName": "旭尧.龙",
"tagDesc": "mszfzv",
"state": "vnahq7",
"sort": 158
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}21.4. 修改服务标签
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改服务标签
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
createBy | int64 | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | int64 | 更新人 | false | - |
id | int64 | id,新增时不能为空 | false | - |
tagName | string | 标签名称 | true | - |
tagDesc | string | 标签描述 | true | - |
state | string | 状态;0禁用 1启用 | true | - |
sort | int32 | 排序 | true | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/serviceTag/admin/update? --data '{
"createBy": 192,
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": 201,
"id": 321,
"tagName": "旭尧.龙",
"tagDesc": "q3v3ji",
"state": "fegbdr",
"sort": 204
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}22. 用户地址
22.1. 用户地址列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户地址列表
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/address/user/listResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | array | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─userId | string | 用户id | - |
└─receiverName | string | 收件人名字 | - |
└─phoneNum | string | 手机号 | - |
└─province | string | 省 | - |
└─city | string | 市 | - |
└─county | string | 区县 | - |
└─address | string | 地址详情 | - |
└─defaultFlag | string | 是否默认;0否 1是 | - |
└─createBy | string | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | string | 更新人 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": [
{
"id": 171,
"userId": "14",
"receiverName": "旭尧.龙",
"phoneNum": "m6i9qp",
"province": "8qktkb",
"city": "cv0bop",
"county": "x56g1b",
"address": "Suite 295 田中心969号, 长沙, 黑 483066",
"defaultFlag": "w08jxt",
"createBy": "xd9b60",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "pehzdj"
}
]
}22.2. 用户地址详情
Type: POST
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户地址详情
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | 地址id | true | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/address/info/50Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─userId | string | 用户id | - |
└─receiverName | string | 收件人名字 | - |
└─phoneNum | string | 手机号 | - |
└─province | string | 省 | - |
└─city | string | 市 | - |
└─county | string | 区县 | - |
└─address | string | 地址详情 | - |
└─defaultFlag | string | 是否默认;0否 1是 | - |
└─createBy | string | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | string | 更新人 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 676,
"userId": "14",
"receiverName": "旭尧.龙",
"phoneNum": "zwe399",
"province": "9t6jp6",
"city": "upmtn1",
"county": "5og94c",
"address": "Suite 295 田中心969号, 长沙, 黑 483066",
"defaultFlag": "qg546p",
"createBy": "slobav",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "tem6lr"
}
}22.3. 新增用户地址
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 新增用户地址
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
userId | string | 用户id | false | - |
receiverName | string | 收件人名字 | true | - |
phoneNum | string | 手机号 | true | - |
province | string | 省 | true | - |
city | string | 市 | true | - |
county | string | 区县 | true | - |
address | string | 地址详情 | true | - |
defaultFlag | string | 是否默认;0否 1是 | true | - |
createBy | string | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | string | 更新人 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/address/user/save? --data '{
"id": 556,
"userId": "14",
"receiverName": "旭尧.龙",
"phoneNum": "a9afq9",
"province": "alben7",
"city": "h4ubse",
"county": "xos75s",
"address": "Suite 295 田中心969号, 长沙, 黑 483066",
"defaultFlag": "jmracu",
"createBy": "cpbsgz",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "uzblkn"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}22.4. 用户地址修改
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 用户地址修改
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
userId | string | 用户id | false | - |
receiverName | string | 收件人名字 | true | - |
phoneNum | string | 手机号 | true | - |
province | string | 省 | true | - |
city | string | 市 | true | - |
county | string | 区县 | true | - |
address | string | 地址详情 | true | - |
defaultFlag | string | 是否默认;0否 1是 | true | - |
createBy | string | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | string | 更新人 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/address/user/update? --data '{
"id": 94,
"userId": "14",
"receiverName": "旭尧.龙",
"phoneNum": "1hzws1",
"province": "ol7k24",
"city": "9nriro",
"county": "plo550",
"address": "Suite 295 田中心969号, 长沙, 黑 483066",
"defaultFlag": "9yka8y",
"createBy": "6ju1kz",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "xf5oc1"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}22.5. 删除用户地址
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除用户地址
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | 地址id,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/address/user/delete --data '[
618,
101
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}23. 用户商品收藏
23.1. 用户收藏列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户收藏列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/collect/user/list?curPage=1&orderField=lx7zfl&order=k2egv5&pageSize=10Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id | - |
└─userId | string | 用户id | - |
└─goodsId | int64 | 商品id | - |
└─goodsMainImageUrl | string | 商品主图 | - |
└─goodsName | string | 商品名称 | - |
└─goodsMarketPrice | number | 商品市场价 | - |
└─goodsPrice | number | 商品销售价 | - |
└─createBy | string | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | string | 更新人 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 292,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 78,
"userId": "14",
"goodsId": 278,
"goodsMainImageUrl": "www.xn---xn--x8s-r93q.io",
"goodsName": "旭尧.龙",
"goodsMarketPrice": 555,
"goodsPrice": 956,
"createBy": "274zea",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "dnw63s"
}
]
}
}23.2. 新增/取消收藏
Type: POST
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 没有收藏的商品调用该接口标识收藏商品,已收藏的商品调用该接口标识取消收藏
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
goodsId | int64 | 商品id | true | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/collect/user/233Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}23.3. 获取用户是否收藏商品
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 获取用户是否收藏商品
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
goodsId | int64 | 商品id | true | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/collect/user/929Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": true
}23.4. 清空收藏
Type: DELETE
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 清空收藏
Request-example:
curl -X DELETE -i http://localhost:10000/cloud-mall/collect/user/clearResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}24. 用户商品足迹
24.1. 用户足迹列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户足迹列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/footprint/user/list?order=kyu659&curPage=1&orderField=sh23gn&pageSize=10Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id | - |
└─userId | string | 用户id | - |
└─goodsId | int64 | 商品id | - |
└─goodsName | string | 商品名称 | - |
└─goodsMainImageUrl | string | 商品主图 | - |
└─goodsMarketPrice | number | 商品市场价格 | - |
└─goodsPrice | number | 商品价格 | - |
└─cnt | int32 | 浏览次数 | - |
└─createBy | string | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | string | 更新人 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 553,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 49,
"userId": "14",
"goodsId": 220,
"goodsName": "旭尧.龙",
"goodsMainImageUrl": "www.xn---xn--x8s-r93q.io",
"goodsMarketPrice": 961,
"goodsPrice": 707,
"cnt": 921,
"createBy": "vrbp7p",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "re6ijl"
}
]
}
}24.2. 新增商品足迹
Type: POST
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 用户每次进入商品详情时都要调用一次
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
goodsId | int64 | 商品id | true | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/footprint/user/706/addResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}24.3. 删除足迹
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除足迹
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | 足迹id集合,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/footprint/user/delete --data '[
426,
111
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}24.4. 清空足迹
Type: DELETE
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 清空足迹
Request-example:
curl -X DELETE -i http://localhost:10000/cloud-mall/footprint/user/clearResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}25. 搜索历史记录 前端使用缓存记录用户搜索记录
25.1. 列表
Type: GET
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 列表
Query-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
curPage | int32 | 当前页 | false | - |
pageSize | int32 | 每页大小 | false | - |
orderField | string | 排序字段 | false | - |
order | string | 排序方式,可选值:asc、desc | false | - |
Request-example:
curl -X GET -i http://localhost:10000/cloud-mall/usersearchhistory/list?order=genf2y&curPage=1&pageSize=10&orderField=zqc78pResponse-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─totalCount | int32 | 总记录数 | - |
└─pageSize | int32 | 每页记录数 | - |
└─totalPage | int32 | 总页数 | - |
└─currPage | int32 | 当前页数 | - |
└─list | array | 列表数据 | - |
└─id | int64 | id | - |
└─userId | string | 用户id | - |
└─keyword | string | 关键字 | - |
└─searchCnt | int32 | 搜索次数 | - |
└─createBy | string | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | string | 更新人 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"totalCount": 191,
"pageSize": 10,
"totalPage": 1,
"currPage": 1,
"list": [
{
"id": 540,
"userId": "14",
"keyword": "ysfvxr",
"searchCnt": 235,
"createBy": "ujzanl",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "u7rpvq"
}
]
}
}25.2. 信息
Type: POST
Author: codingliang
Content-Type: application/x-www-form-urlencoded;charset=utf-8
Description: 信息
Path-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | No comments found. | true | - |
Request-example:
curl -X POST -i http://localhost:10000/cloud-mall/usersearchhistory/info/969Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
└─id | int64 | id | - |
└─userId | string | 用户id | - |
└─keyword | string | 关键字 | - |
└─searchCnt | int32 | 搜索次数 | - |
└─createBy | string | 创建人 | - |
└─createTime | string | 创建时间 | - |
└─updateTime | string | 更新时间 | - |
└─updateBy | string | 更新人 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": {
"id": 490,
"userId": "14",
"keyword": "fu3xy4",
"searchCnt": 310,
"createBy": "768i19",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "hnwpbe"
}
}25.3. 保存
Type: POST
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 保存
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
userId | string | 用户id | false | - |
keyword | string | 关键字 | false | - |
searchCnt | int32 | 搜索次数 | false | - |
createBy | string | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | string | 更新人 | false | - |
Request-example:
curl -X POST -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/usersearchhistory/save? --data '{
"id": 886,
"userId": "14",
"keyword": "7ebf5f",
"searchCnt": 984,
"createBy": "0nmdn4",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "q04ipw"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}25.4. 修改
Type: PUT
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 修改
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
id | int64 | id | false | - |
userId | string | 用户id | false | - |
keyword | string | 关键字 | false | - |
searchCnt | int32 | 搜索次数 | false | - |
createBy | string | 创建人 | false | - |
createTime | string | 创建时间 | false | - |
updateTime | string | 更新时间 | false | - |
updateBy | string | 更新人 | false | - |
Request-example:
curl -X PUT -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/usersearchhistory/update? --data '{
"id": 123,
"userId": "14",
"keyword": "udo2z9",
"searchCnt": 120,
"createBy": "mexshp",
"createTime": "2024-04-15 22:38:20",
"updateTime": "2024-04-15 22:38:20",
"updateBy": "rafqk5"
}'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}25.5. 删除
Type: DELETE
Author: codingliang
Content-Type: application/json; charset=utf-8
Description: 删除
Body-parameters:
| Parameter | Type | Description | Required | Since |
|---|---|---|---|---|
ids | array | No comments found.,[array of int64] | false |
Request-example:
curl -X DELETE -H 'Content-Type: application/json; charset=utf-8' -i http://localhost:10000/cloud-mall/usersearchhistory/delete --data '[
115,
16
]'Response-fields:
| Field | Type | Description | Since |
|---|---|---|---|
success | boolean | 接口调用结果标识 | - |
message | string | 接口调用结果信息 | - |
code | string | 接口调用业务码 | - |
data | object | 接口调用返回数据 | - |
Response-example:
{
"success": true,
"message": "success",
"code": "14635",
"data": null
}26. 错误码列表
| Error code | Description |
|---|---|
10000 | 系统未知异常 |
10001 | 请求方法不支持 |
10002 | 缺少必要的请求头 |
11001 | 参数格式校验失败 |
11002 | body为空 |
11003 | 参数异常 |
11004 | 无效的时间格式 |
11005 | 系统异常 |
12000 | 角色已存在 |
13000 | 手机号码已存在 |
13001 | 登录失败 |
13002 | 用户状态异常 |
13003 | 无效的token |
13004 | token为空 |
13007 | 用户不存在 |
14001 | 支付签名验证失败 |
14002 | 支付参数获取失败 |
14003 | 支付验签失败 |
14004 | 支付结果查询失败 |
15001 | 快递查询失败 |
15002 | 第三方服务请求失败 |
16000 | 数据已存在 |
16001 | 数据不存在 |
16003 | 批量操作数据库失败 |
16006 | 文件格式不支持 |
16007 | 文件上传错误 |
16008 | 临时文件不存在 |
16007 | 文件为空 |
16008 | 文件太大 |