- system
- access
- app
- common
- data
- dict
- log
- module
- ops
- role
- tenant
- access
- app
- core
- info
- agreement
- config
- user
- notify
- area
- project
- slot
- dept
- job
- open
- data
创建租户应用菜单
POST
/api/v1/system/tenant/app/menu/create
system/tenant/app/menusystemTenantAppMenu
请求参数
Header 参数
Ithings-Project-Id
string
可选
默认值:
{{Ithings-Project-Id}}
Ithings-Token
string
可选
默认值:
{{iThings-token}}
app-code
string
可选
默认值:
{{appCode}}
device-id
string
可选
Body 参数application/json
templateID
integer <int64>
必需
code
string
租户编号
appCode
string
应用编号
id
integer <int64>
编号
moduleCode
string
模块编号
name
string
菜单名称
parentID
integer <int64>
可选
type
integer <int64>
可选
path
string
系统的path
component
string
页面
icon
string
菜单图标
redirect
string
路由重定向
order
integer <int64>
可选
hideInMenu
integer <int64>
可选
isCommon
integer <int64>
可选
body
string
前端自定义字段
createTime
integer <int64>
创建时间
children
array[object (TenantAppMenu) {18}]
可选
templateID
integer <int64>
必需
code
string
租户编号
appCode
string
应用编号
id
integer <int64>
编号
moduleCode
string
模块编号
name
string
菜单名称
parentID
integer <int64>
可选
type
integer <int64>
可选
path
string
系统的path
component
string
页面
icon
string
菜单图标
redirect
string
路由重定向
order
integer <int64>
可选
hideInMenu
integer <int64>
可选
isCommon
integer <int64>
可选
body
string
前端自定义字段
createTime
integer <int64>
创建时间
children
array[object (TenantAppMenu) {18}]
可选
示例
{
"templateID": 0,
"code": "string",
"appCode": "string",
"id": 0,
"moduleCode": "string",
"name": "string",
"parentID": 0,
"type": 0,
"path": "string",
"component": "string",
"icon": "string",
"redirect": "string",
"order": 0,
"hideInMenu": 0,
"isCommon": 0,
"body": "string",
"createTime": 0,
"children": [
{}
]
}
示例代码
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/tenant/app/menu/create' \
--header 'Ithings-Project-Id: {{Ithings-Project-Id}}' \
--header 'Ithings-Token: {{iThings-token}}' \
--header 'app-code: {{appCode}}' \
--header 'device-id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
返回code
默认值:
200
msg
string
返回的消息
data
object (WithID)
可选
id
integer <int64>
id
示例
{
"code": "200",
"msg": "string",
"data": {
"id": 0
}
}
修改于 2025-03-25 09:32:22