Skip to content

系统消息(adminx)

1. 接口定位

  • 所属域: admin/system(adminx)
  • 目标: 管理端最小可用的系统消息 CRUD

2. 接口列表

  • POST /adminx/system_message/create
  • POST /adminx/system_message/update
  • POST /adminx/system_message/delete
  • POST /adminx/system_message/search

所有接口均要求管理员 token。

3. 数据结构

SystemMessage

字段类型说明
idstring消息 ID
titlestring标题
contentJsonstring内容 JSON 字符串
createTimeint64创建时间(Unix 毫秒)
updateTimeint64更新时间(Unix 毫秒)

4. 请求示例

create

json
{
  "title": "系统维护通知",
  "contentJson": "{\"type\":\"notice\",\"text\":\"今晚 23:00 维护\"}"
}

update

json
{
  "id": "685e9f8dc0e2743f592be121",
  "title": "系统维护通知(更新)",
  "contentJson": "{\"type\":\"notice\",\"text\":\"今晚 23:30 维护\"}"
}

delete

json
{
  "ids": ["685e9f8dc0e2743f592be121"]
}
json
{
  "keyword": "维护",
  "pagination": {
    "pageNumber": 1,
    "showNumber": 20
  }
}