POST
/goodsChannel/queryGoodsChannelPage管理后台商品渠道-分页查询
商品与履约 / 渠道
基本信息
- 接口状态前端在用
- 接口URLPOST
https://dscp-dev.hn12301.net/manage-api/goodsChannel/queryGoodsChannelPage - 请求方式
POST - Content-Type
application/json - 暴露渠道管理后台 前缀
/manage-api - 名称来源源码注释
- 调用方已确认在用 · 管理后台(1 个前端)
- 需求上下文
- 维护人 / 最后改动AsiQue 2023-12-14
- 读写数据表
goods_channel反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.goods.GoodsChannelController#queryGoodsChannelPage - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/goods/GoodsChannelController.java:99 - 判定依据
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无(渠道统一鉴权头见《认证方式》) | ||||
Query 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
路径参数及说明
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
Body 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| pageNo | … | 否 | Integer | 当前页面 |
| pageSize | … | 否 | Integer | 每页记录数 |
| orderBy | … | 否 | String | 排序语句 |
| status | … | 否 | GoodsChannelStatus | 状态 → goods_channel.status 1=已上架 2=编辑中 3=已下架 |
| keywords | … | 否 | String | 关键字 |
认证方式
响应参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| list | … | 否 | List<T><GoodsChannelResponse> | 分页数据集合(元素结构见下一行) |
| id | … | 否 | Long | id → goods_channel.id |
| goodsChannelName | … | 否 | String | 商品渠道名称 → goods_channel.goods_channel_name |
| goodsId | … | 否 | Long | 关联商品id → goods_channel.goods_id |
| goodsName | … | 否 | String | 关联商品名称 |
| goodsType | … | 否 | String | 商品类型 |
| skuId | … | 否 | Long | 关联skuId → goods_channel.sku_id |
| skuName | … | 否 | String | 关联sku名称 |
| merchantId | … | 否 | Long | 商品所属商户id → goods_channel.merchant_id |
| shopId | … | 否 | Long | 商铺id(关联shop表id) → goods_channel.shop_id |
| shopsName | … | 否 | String | 商品所属商铺 |
| channelMerchantId | … | 否 | Long | 渠道商户id → goods_channel.channel_merchant_id |
| channelShopId | … | 否 | Long | 渠道商铺id → goods_channel.channel_shop_id |
| channelShopsName | … | 否 | String | 渠道商铺 |
| maxSalesPrice | … | 否 | Integer | 最大销售价格 → goods_channel.max_sales_price |
| minSalesPrice | … | 否 | Integer | 最小销售价格/分 → goods_channel.min_sales_price |
| stock | … | 否 | Integer | 初始库存 → goods_channel.stock |
| introduction | … | 否 | String | 资源说明 → goods_channel.introduction |
| remark | … | 否 | String | 备注 → goods_channel.remark |
| status | … | 否 | GoodsChannelStatus | 状态,1已上架,2编辑中,3已下架 → goods_channel.status 1=已上架 2=编辑中 3=已下架 |
| goodsChannelExtendList | … | 否 | List<GoodsChannelExtendResponse> | 供货价设置列表 |
| id | … | 否 | Long | id → goods_channel.id |
| goodsChannelId | … | 否 | Long | 商品渠道id(关联goods_channel表id) |
| minSalesCount | … | 否 | Integer | 最小销量 |
| maxSalesCount | … | 否 | Integer | 最大销量 |
| supplyPrice | … | 否 | Integer | 供货价格/分 |
| total | … | 否 | Long | 数据总数 |
响应示例
成功响应示例
{
"errcode": 0,
"errmsg": "",
"data": {
"list": "[]",
"id": "1",
"goodsChannelName": "\"string\"",
"goodsId": "1",
"goodsName": "\"string\"",
"goodsType": "\"string\"",
"skuId": "1",
"skuName": "\"string\"",
"merchantId": "1",
"shopId": "1",
"shopsName": "\"string\"",
"channelMerchantId": "1"
}
}附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:goods_channel 反查全部引用接口 →
- GoodsChannelController#queryGoodsChannelPage
- GoodsChannelService#queryPage(GoodsChannelServiceImpl)
- GoodsChannelMapper#queryPage
- BeanUtils.mapPage → GoodsChannelQuery
逻辑摘要:分页查询(goodsChannelService.queryPage);入参与返回值经 BeanUtils 做对象/分页映射
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)
调用点证据
dscp-html-manage/src/api/goods/channel/index.ts:10管理后台 · request