POST
/mpContent/queryList小程序小程序·内容-查询列表 · queryList 推断名·方法名推断
C 端聚合接口 / 小程序·内容
基本信息
- 接口状态前端在用 免鉴权
- 接口URLPOST
https://dscp-dev.hn12301.net/mp-api/mpContent/queryList - 请求方式
POST - Content-Type
application/json - 暴露渠道小程序 前缀
/mp-api - 名称来源方法名推断
- 调用方已确认在用 · 爱上萍乡 小程序(1 个前端)
- 需求上下文
- 维护人 / 最后改动jacobxu666 2026-06-30
- 读写数据表
mp_content反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.zhy.mp.MpContentController#queryList - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/zhy/mp/MpContentController.java:25 - 判定依据
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无(渠道统一鉴权头见《认证方式》) | ||||
Query 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
路径参数及说明
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
Body 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| channel | … | 否 | String | xuchao: 渠道标识 → mp_content.channel |
| type | … | 否 | String | → mp_content.type |
| category | … | 否 | String | → mp_content.category |
| cardModelId | … | 否 | Long | → mp_content.card_model_id |
认证方式
响应参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| id | … | 否 | Long | → mp_content.id |
| channel | … | 否 | String | → mp_content.channel |
| type | … | 否 | String | → mp_content.type |
| title | … | 否 | String | → mp_content.title |
| content | … | 否 | String | → mp_content.content |
| imageUrl | … | 否 | String | → mp_content.image_url |
| videoUrl | … | 否 | String | |
| linkUrl | … | 否 | String | → mp_content.link_url |
| sortOrder | … | 否 | Integer | → mp_content.sort_order |
| category | … | 否 | String | → mp_content.category |
| createdTime | … | 否 | Date | → mp_content.created_time |
响应示例
成功响应示例
{
"errcode": 0,
"errmsg": "",
"data": {
"id": "1",
"channel": "\"string\"",
"type": "\"string\"",
"title": "\"string\"",
"content": "\"string\"",
"imageUrl": "\"string\"",
"videoUrl": "\"string\"",
"linkUrl": "\"string\"",
"sortOrder": "1",
"category": "\"string\"",
"createdTime": "\"2026-01-01 00:00:00\""
}
}附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:mp_content 反查全部引用接口 →
- MpContentController#queryList
- MpContentService#queryList(MpContentServiceImpl)
- MpContentMapper#queryList
逻辑摘要:列表查询(mpContentService.queryList)
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)
调用点证据
pingxiangcard/src/packages/content/pages/usage-guide.vue:20爱上萍乡 小程序 · data