POST
/openapi/queryOpenapiChannelRulePage管理后台发卡渠道规则信息-分页查询
开放与对接 / 开放平台通用
基本信息
- 接口状态前端在用
- 接口URLPOST
https://dscp-dev.hn12301.net/manage-api/openapi/queryOpenapiChannelRulePage - 请求方式
POST - Content-Type
application/json - 暴露渠道管理后台 前缀
/manage-api - 名称来源源码注释
- 调用方已确认在用 · 管理后台(1 个前端)
- 需求上下文
- 维护人 / 最后改动liuxu 2024-08-12
- 读写数据表
openapi_channel_rule反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.openapi.OpenapiChannelRuleController#queryOpenapiChannelRulePage - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/openapi/OpenapiChannelRuleController.java:70 - 判定依据
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无(渠道统一鉴权头见《认证方式》) | ||||
Query 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
路径参数及说明
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
Body 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| pageNo | … | 否 | Integer | 当前页面 |
| pageSize | … | 否 | Integer | 每页记录数 |
| orderBy | … | 否 | String | 排序语句 |
| cardName | … | 否 | String | → openapi_channel_rule.card_name |
| operatorId | … | 否 | Long | → openapi_channel_rule.operator_id |
| keywords | … | 否 | String | 关键字 |
认证方式
响应参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| list | … | 否 | List<T><OpenapiChannelRuleResponse> | 分页数据集合(元素结构见下一行) |
| id | … | 否 | Long | id → openapi_channel_rule.id |
| channelId | … | 否 | Long | → openapi_channel_rule.channel_id |
| cardName | … | 否 | String | 卡名称 → openapi_channel_rule.card_name |
| channel | … | 否 | ChannelType | 卡种平台 → openapi_channel_rule.channel 1=北京卡管理系统 2=三省卡系统 3=数字平台 4=质惠游 5=支付宝 6=兴业银行 7=湘工惠 8=湘约码 |
| typeId | … | 否 | String | 卡种id → openapi_channel_rule.type_id |
| cardNumLimit | … | 否 | Integer | 发卡数量限制 → openapi_channel_rule.card_num_limit |
| cardNumRemain | … | 否 | Integer | 剩余可发卡数量 → openapi_channel_rule.card_num_remain |
| status | … | 否 | Integer | 状态 0=禁用 1=正常 → openapi_channel_rule.status |
| addDate | … | 否 | Date | 添加时间 → openapi_channel_rule.add_date |
| operatorId | … | 否 | Long | 渠道id → openapi_channel_rule.operator_id |
| cardModelId | … | 否 | Long | 卡种id → openapi_channel_rule.card_model_id |
| goodsId | … | 否 | Long | 商品id → openapi_channel_rule.goods_id |
| price | … | 否 | Integer | → openapi_channel_rule.price |
| memberPrice | … | 否 | Integer | → openapi_channel_rule.member_price |
| total | … | 否 | Long | 数据总数 |
响应示例
成功响应示例
{
"errcode": 0,
"errmsg": "",
"data": {
"list": "[]",
"id": "1",
"channelId": "1",
"cardName": "\"string\"",
"channel": "1",
"typeId": "\"string\"",
"cardNumLimit": "1",
"cardNumRemain": "1",
"status": "1",
"addDate": "\"2026-01-01 00:00:00\"",
"operatorId": "1",
"cardModelId": "1"
}
}附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:openapi_channel_rule 反查全部引用接口 →
- OpenapiChannelRuleController#queryOpenapiChannelRulePage
- OpenapiChannelRuleService#queryPage(OpenapiChannelRuleServiceImpl)
- OpenapiChannelRuleMapper#queryPage
- BeanUtils.map → OpenapiChannelRuleQuery
- BeanUtils.mapPage → OpenapiChannelRuleResponse
逻辑摘要:分页查询(openapiChannelRuleService.queryPage);入参与返回值经 BeanUtils 做对象/分页映射
源码内联注释(旧站解析结果)
- 设置其他查询条件
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)
调用点证据
dscp-html-manage/src/api/card/index.ts:360管理后台 · request