修改字典项
开发中
PUT
/admin/dict/item
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
必需
示例值:
Bearer 548c5d5d-f951-49f2-8e83-e688a57a9bea
Body 参数application/json
id
string
字典项id
dictId
string
所属字典id
dictType
string
字典类型
value
string
数据值
label
string
标签名
description
string
描述
sortOrder
integer
排序值,默认升序
remarks
string
备注信息
示例
{"id":"50","dictId":"13","dictType":"channel_type","value":"MERGE_PAY","label":"聚合支付","description":"聚合支付","sortOrder":1,"remarks":"聚合支付","createBy":" ","updateBy":" ","createTime":"2019-05-30 19:08:08","updateTime":"2019-06-18 13:51:53","delFlag":"0"}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://devapi.maicanbao.com/admin/dict/item' \
--header 'Authorization: Bearer 548c5d5d-f951-49f2-8e83-e688a57a9bea' \
--header 'Content-Type: application/json' \
--data-raw '{"id":"50","dictId":"13","dictType":"channel_type","value":"MERGE_PAY","label":"聚合支付","description":"聚合支付","sortOrder":1,"remarks":"聚合支付","createBy":" ","updateBy":" ","createTime":"2019-05-30 19:08:08","updateTime":"2019-06-18 13:51:53","delFlag":"0"}'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
null
必需
ok
boolean
必需
示例
{
"code": 1,
"msg": "系统内置字典项目不能修改",
"data": null,
"ok": false
}