文档
测试

公告内容

POST
/api/notice/info

接口描述

获取公告内容,无需请鉴权

请求头

参数名
类型
描述
必填
Accept-Language
string
zh en
必填

请求参数

参数名
类型
描述
必填
id
int
公告ID
必填

响应参数

参数名
类型
描述
必填
code
int
状态码
必填
msg
string
返回消息
必填
time
int
时间戳
必填
data
object (json)
数据集合
必填
id
int
公告ID
可选
title
string
公告标题
可选
content
text
内容
可选
author
string
来源
可选
createtime
datetime
发布时间
可选

说明 / 示例

成功 { "code": 1, "msg": "获取成功", "time": "1688993842", "data": { "id": 1, "title": "T训权", "content": "最近,OpenA I了。", "author": "du.com", "createtime": 1688820395, "updatetime": 1688990299, "status": "normal" } } } 失败 { "code": 0, "msg": "未知参数, "time": "1688820395", "data": null }