文档
测试

公告分页列表获取接口

GET
/tbNoticeInfo/userGetNoticeList

接口描述

获取公告分页列表信息(未加权限控制)

请求参数

参数名
类型
描述
必填
offset
number
数据偏移量(当前页数*每页显示的记录数)参考后台分页,可更改
必填
limit
number
每页的记录数
必填

响应参数

参数名
类型
描述
必填
data
object
数据字典
必填
total
string
示例:20
必填
rows
array
数据列表
必填
create_time
string
示例:2020-03-19 09:36:22
必填
publish_time
string
示例:2020-03-19 09:36:26
必填
creater
string
示例:张三
必填
publisher
string
示例:张三
必填
id
string
示例:21
必填
title
string
示例:test
必填
status
number
示例:2
必填
code
number
返回code 400-失败 200-成功 401-未登录
必填
msg
string
消息提示 success-成功
必填

说明 / 示例

未添加参数为获取5条最新发布的公告 返回格式 ~~~JSON { "code": 200, "message": "success", "data": { "rows": [ { "publish_time": "2020-03-13 17:38:04", "publisher": "张三", "id": "1", "title": "test公告" }, { "publish_time": "2020-03-13 17:35:42", "id": "3", "title": "test公告" }, { "publish_time": "2020-03-13 16:38:53", "id": "15", "title": "123" }, { "publish_time": "2020-03-13 15:07:46", "id": "12", "title": "标题" }, { "publish_time": "2020-03-12 18:57:27", "id": "10", "title": "qweqwe" } ], "total": "7" } } ~~~