文档
测试

[IF_03_02]查看当前分类下的所有宣传文章

GET
/api/article/list/{articleType}

接口描述

查看当前分类下的所有宣传文章,参数key为模糊查找关键字。【pageNum和pageSize用params传】

关联数据库

- security_article

请求参数

参数名
类型
描述
必填
key
String
关键字
可选
articleType
String
文章类型
必填
pageNum
int
当前页数
必填
pageSize
int
每页记录数
必填

响应参数

参数名
类型
描述
必填
articleId
Long
文章id
必填
articleTitle
String
标题
必填
articleContent
String
文章内容
必填
imagePath
String
图片路径
必填
articleType
String
文章类型
必填
articlePublishTime
date
文章发布时间
必填
articlePublisherName
String
发布文章人姓名
必填
isDeleted
Integer
是否删除
必填
code
Integer
状态码
必填
msg
String
响应信息
必填
total
int
当前页记录数
必填

说明 / 示例

请求参数 ``` { "articleType":, "key": , // 可不输入 "pageNum": 1, // 当前页数 "pageSize": 10 // 每页记录数 } ``` 响应参数 ``` { "code":200, // 其他错误返回设置不同的状态码及返回信息 "msg":“success”, "total": 2, "rows": [ { "articleId":, "articleTitle":, "articleContent":, "imagePath":, "articleType":, "articlePublishTime":, "articlePublisherName":, "isDeleted": }, { "articleId":, "articleTitle":, "articleContent":, "imagePath":, "articleType":, "articlePublishTime":, "articlePublisherName":, "isDeleted": } ] } ```