- j2
- 消息服务
- 通知提醒
- 消息中间件
- 系统管理
- j3
- c1
- 基础配置
- 人员配置
- c2
- c3
- 储位管理
- 库内管理
- c4
- c5
- 计费管理
- 计费配置
- 预警管理
- c7
- c8
- c6
- J5
- j4
- j8
- j1
- j7
ok录入公告接口
联调中
POST
/sysmgr/announcement/add
系统公告相关接口
最后修改时间:2025-03-11 12:01:59
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
createTime
string <date-time>
创建时间
示例值:
2025-02-22
createUser
string
创建者
示例值:
创建者1
noticeContent
string
通知公告内容
示例值:
通知公告内容
noticeLevel
string
可选
示例值:
1
noticeTerm
string <date-time>
阅读期限
示例值:
2025-02-22
noticeTitle
string
通知标题
示例值:
通知标题
noticeType
string
可选
示例值:
1
roleId
string
可选
roleName
string
可选
userId
string
可选
userName
string
可选
示例
{
"createTime": "2025-02-22",
"createUser": "创建者1",
"noticeContent": "通知公告内容",
"noticeLevel": 1,
"noticeTerm": "2025-02-22",
"noticeTitle": "通知标题",
"noticeType": 1,
"roleId": "string",
"roleName": "string",
"userId": "string",
"userName": "string"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/sysmgr/announcement/add' \
--header 'Content-Type: application/json' \
--data-raw '{
"createTime": "2025-02-22",
"createUser": "创建者1",
"noticeContent": "通知公告内容",
"noticeLevel": 1,
"noticeTerm": "2025-02-22",
"noticeTitle": "通知标题",
"noticeType": 1,
"roleId": "string",
"roleName": "string",
"userId": "string",
"userName": "string"
}'
返回响应
🟢200成功
*/*
Body
code
integer <int32>
状态码
示例值:
10000
data
boolean
数据对象
message
string
提示消息
示例值:
提示消息内容
示例
{
"code": 10000,
"data": true,
"message": "提示消息内容"
}
🟢201成功
🟠401没有权限
🟠403禁止访问
🟠404记录不存在