# 获取公告

# 简要描述
  • 获取公告
# 请求URL
  • /api/getNotice
# 请求头
参数名 必选 类型 说明
Content-Type string 此参数必传,当请求数据非json时此参数传对应格式如(multipartform-data,application/x-www-form-urlencoded,等)是json请传application/json
askKey string 此参数必传,验证app的令牌
sign string 此参数如果在app设置开启了验签是必传
time string 当开启验签时,此参数为必传
apiUserToken string 用户令牌
nonce string 随机字符串(当开启V3验签此参数必传,且2分钟内不允许重复)
# 请求方式
  • get
# 参数
参数名 必选 类型 说明
# 请求示例

1
# 返回示例
{
    "code": "200",
    "message": "",
    "status": true,
    "data": {
        "id": "1",
        "createdBy": "1",
        "createdDate": "08:00 01/01/1970",
        "modifiedBy": "1",
        "modifiedDate": "08:00 01/01/1970",
        "status": 1,
        "ip": "1",
        "head": "更新啦",
        "str": "土豆api上线啦,赶紧下载吧"
    },
    "pc": null
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 返回参数说明
参数名 类型 说明
code string 状态码200成功403权限异常或登陆超时,500请求异常
createdDate string 创建时间
createdBy string 创建人
modifiedBy string 修改人
modifiedDate string 修改时间
status int 状态0删除1使用
head string 公告标题
str string 公告内容
nonce string 随机字符串(当开启V3验签必返回次参数,且2分钟内不会重复)
sign string 此参数如果在app设置开启了验签是必返
time long 当开启验签时,此参数为必返回
# 备注
  • 更多返回错误代码请看首页的错误代码描述
lastUpdate: 11/6/2025, 1:56:28 PM