文档
测试

公告列表

GET
/app/notice/list

请求参数

参数名
类型
描述
必填
key
String
关键字查询, 默认查询全部
可选
sort
String
按照公告发布时间排序 , asc 升序, desc 降序 ,默认 desc
可选
pageIndex
int
当前页,默认1
可选
pageSize
int
显示条数。默认 10
可选

响应参数

参数名
类型
描述
必填
code
int
状态码 0 成功其他失败
必填
msg
String
响应信息
必填
obj
Object
返回数据
必填
records
array
公告列表
必填
total
int
总共数据量
必填
size
int
当前显示条数
必填
current
int
当前页
必填
pages
int
总共多少页
必填

说明 / 示例

## `返回示例 - 带注释` ```java { "code": 0, "msg": "请求成功", "obj": { "records": [ // 数据列表 { "id": 8, // 公告id "title": "asdasd", // 公告标题 "introduce": "adasd", // 公告简介 "content": "asdasd", // 公告内容 "pageUrl": "http://www.huituangouyp.com/app-h5/notice/notice.html?id=8&mid=", // 公告详情h5页面链接,登录状态 mid = 用户id "leastViews": 0, // 阅读量 "leastLike": 0, // 点赞量 "createdTime": "2021-08-25 16:00:00",// 发布时间 "isLike": null// 是否已经点赞 公告列表不用处理- 无效字段 } ], "total": 2, // 总共数据量 "size": 10, // 当前显示条数 "current": 1,// 当前页 "orders": [], "hitCount": false, "searchCount": true, "pages": 1 // 总共多少页 } } ``` ## `返回示例 - 不带注释` ```java { "code": 0, "msg": "请求成功", "obj": { "records": [ { "id": 2, "title": "asdasd", "introduce": "adasd", "content": "asdasd", "pageUrl": "http://www.huituangouyp.com/app-h5/notice/notice.html?id=8&mid=", "leastViews": 0, "leastLike": 0, "createdTime": "2021-08-25 16:00:00", "isLike": null } ], "total": 2, "size": 10, "current": 1, "orders": [], "hitCount": false, "searchCount": true, "pages": 1 } } ```