Add tool management api
This commit is contained in:
@@ -20,7 +20,11 @@ data class SysLogGetParam(
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(description = "类型过滤(多个使用逗号分隔)", allowableValues = ["INFO", "ERROR"], example = "INFO")
|
||||
@Schema(
|
||||
description = "类型过滤(多个使用逗号分隔)",
|
||||
allowableValues = ["INFO", "LOGIN", "LOGOUT", "REGISTER", "STATISTICS", "API", "ERROR"],
|
||||
example = "INFO"
|
||||
)
|
||||
val logType: String?,
|
||||
|
||||
/**
|
||||
@@ -51,10 +55,10 @@ data class SysLogGetParam(
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
/*
|
||||
@Schema(description = "查询使用正则表达式", allowableValues = ["true", "false"], defaultValue = "false")
|
||||
val searchRegex: Boolean = false,
|
||||
*/
|
||||
/*
|
||||
@Schema(description = "查询使用正则表达式", allowableValues = ["true", "false"], defaultValue = "false")
|
||||
val searchRegex: Boolean = false,
|
||||
*/
|
||||
|
||||
/**
|
||||
* Start time to search for
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package top.fatweb.oxygen.api.param.tool
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema
|
||||
import top.fatweb.oxygen.api.param.PageSortParam
|
||||
|
||||
data class ToolManagementGetParam(
|
||||
/**
|
||||
* Type of search
|
||||
*
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(
|
||||
description = "搜索类型",
|
||||
allowableValues = ["ALL", "ID", "USERNAME", "NICKNAME", "EMAIL"],
|
||||
defaultValue = "ALL",
|
||||
example = "ALL"
|
||||
)
|
||||
val searchType: String = "ALL",
|
||||
|
||||
/**
|
||||
* Value to search for
|
||||
*
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(description = "查询内容", example = "ToolName")
|
||||
val searchValue: String?,
|
||||
|
||||
/**
|
||||
* Use regex
|
||||
*
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(
|
||||
description = "查询使用正则表达式",
|
||||
allowableValues = ["true", "false"],
|
||||
defaultValue = "false",
|
||||
example = "false"
|
||||
)
|
||||
val searchRegex: Boolean = false,
|
||||
|
||||
/**
|
||||
* Review
|
||||
*
|
||||
* @author FatttSnake, fatttsnake@gmail.com
|
||||
* @since 1.0.0
|
||||
*/
|
||||
@Schema(description = "审核状态过滤(多个使用逗号分隔)",
|
||||
allowableValues = ["NONE", "PROCESSING", "REJECT", "PASS"],
|
||||
example = "NONE,PASS")
|
||||
val review: String?
|
||||
) : PageSortParam()
|
||||
Reference in New Issue
Block a user