系统消息(adminx)
1. 接口定位
- 所属域: admin/system(adminx)
- 目标: 管理端最小可用的系统消息 CRUD
2. 接口列表
POST /adminx/system_message/createPOST /adminx/system_message/updatePOST /adminx/system_message/deletePOST /adminx/system_message/search
所有接口均要求管理员 token。
3. 数据结构
SystemMessage
| 字段 | 类型 | 说明 |
|---|---|---|
| id | string | 消息 ID |
| title | string | 标题 |
| contentJson | string | 内容 JSON 字符串 |
| createTime | int64 | 创建时间(Unix 毫秒) |
| updateTime | int64 | 更新时间(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"]
}search
json
{
"keyword": "维护",
"pagination": {
"pageNumber": 1,
"showNumber": 20
}
}