- top.dingwen.io.api.doc
- 网站[webplus]
- 枚举
- 异步[async]
- 邮件
- 测试
- 管道业务流[pipeline]
- 测试
- 本地缓存[caffeine]
- 分布式缓存[Redis]
- 二级缓存
- 网络通讯[websocket]
- 进度条
- 日志监控
- 令牌[jwt]
- 配置[config]
- 字典[dict]
- 翻译
- 敏感词
- 公共模块
- 安全模块
新增字典项
POST
/common/dicts/items/default
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Body 参数application/json
dictSort
integer
字典排序
dictLabel
string
字典标签
dictValue
string
字典键值
cssClass
string
样式属性
listClass
string
表格字典样式
status
enum<string>
字典状态[枚举:DicStatus]
ENABLED("ENABLED", "启用"),
DISABLED("DISABLED", "禁用");
枚举值:
ENABLEDDISABLED
remark
string
备注信息
dictType
string
字典类型
buildIn
enum<string>
是否默认[枚举: DicBuildIn]
YES("YES", "是"),
NO("NO", "否");
枚举值:
YESNO
parentId
number
父字典值id
示例
{
"dictSort": 0,
"dictLabel": "string",
"dictValue": "string",
"cssClass": "string",
"listClass": "string",
"status": "ENABLED",
"remark": "string",
"dictType": "string",
"buildIn": "YES",
"parentId": 0
}
返回响应
🟢200成功
application/json
Body
code
number
返回code
exCode
string
异常码
message
string
消息
success
boolean
是否成功
currentTime
string <date-time>
服务器响应时间
正则 匹配:
^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$
tranceId
string
请求id
data
object
数据
示例
{
"code": 500,
"message": "您设置的字典类型d_field_type已存在,请重新设定",
"data": null,
"currentTime": "2023-06-08 14:23:26"
}
修改于 2025-06-21 07:32:21