Add code and execute page to tool management

This commit is contained in:
2024-02-02 17:42:40 +08:00
parent 06213d3414
commit 838c37595d
18 changed files with 770 additions and 30 deletions

25
src/global.d.ts vendored
View File

@@ -89,6 +89,23 @@ interface LoginParam {
captchaCode: string
}
interface UserWithInfoVo {
id: string
username: string
verified: boolean
locking: boolean
expiration: string
credentialsExpiration: string
enable: boolean
currentLoginTime: string
currentLoginIp: string
lastLoginTime: string
lastLoginIp: string
createTime: string
updateTime: string
userInfo: UserInfoVo
}
interface UserWithPowerInfoVo {
id: string
username: string
@@ -532,7 +549,7 @@ interface ToolVo {
icon: string
description: string
base: ToolBaseVo
author: UserInfoVo
author: UserWithInfoVo
ver: string
keywords: string[]
categories: ToolCategoryVo[]
@@ -570,3 +587,9 @@ interface ToolUpdateParam {
categories?: string[]
source?: string
}
interface ToolManagementGetParam extends PageParam {
searchType?: string
searchValue?: string
searchRegex?: boolean
}