添加模块
POST
/api/v1/system/module/info/create
iThings-apisvr/系统管理new/模块管理/模块
请求参数
Header 参数
iThings-token
string
可选
示例值:
{{iThings-token}}
iThings-project-id
string
可选
示例值:
1764806234122309632{{iThings-token}}
iThings-app-code
string
可选
示例值:
{{iThings-app-code}}
iThings-user-role
string
可选
示例值:
1
Accept-Language
string
可选
默认值:
en
iThings-tenant-code
string
可选
Body 参数application/json
code
string
模块编码
name
string
菜单名称
type
integer
可选
subType
integer
子类型
path
string
系统的path
url
string
页面
icon
string
菜单图标
desc
string | null
描述
order
integer
排序
hideInMenu
integer
可选
body
string | null
自定义字段
tag
integer
标签
示例
{
"code": "systemManage",
"name": "系统管理",
"type": 1,
"path": "enim",
"url": "http://ojuhc.cn/iiq",
"icon": "http://dummyimage.com/100x100",
"desc": "enim sint eiusmod fugiat non",
"order": 11,
"hideInMenu": 73,
"body": "dolore consequat sed incididunt"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/api/v1/system/module/info/create' \
--header 'iThings-token: {{iThings-token}}' \
--header 'iThings-token;' \
--header 'iThings-project-id: 1764806234122309632{{iThings-token}}' \
--header 'iThings-project-id;' \
--header 'iThings-app-code: {{iThings-app-code}}' \
--header 'iThings-app-code;' \
--header 'iThings-user-role: 1' \
--header 'iThings-user-role;' \
--header 'Accept-Language: en' \
--header 'iThings-tenant-code;' \
--header 'Content-Type: application/json' \
--data-raw '{
"code": "systemManage",
"name": "系统管理",
"type": 1,
"path": "enim",
"url": "http://ojuhc.cn/iiq",
"icon": "http://dummyimage.com/100x100",
"desc": "enim sint eiusmod fugiat non",
"order": 11,
"hideInMenu": 73,
"body": "dolore consequat sed incididunt"
}'
返回响应
🟢200成功
application/json
Body
code
integer | null
返回code
msg
string
返回消息
默认值:
success
示例
{
"code": 0,
"msg": "success"
}

扫码加入 iThings微信交流群

