Add enable field to ToolBase and ToolTemplate
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
package top.fatweb.oxygen.api.param.tool
|
||||
|
||||
import jakarta.validation.constraints.NotBlank
|
||||
import jakarta.validation.constraints.NotNull
|
||||
|
||||
data class ToolBaseAddParam(
|
||||
@field: NotBlank(message = "Name can not be blank")
|
||||
val name: String?,
|
||||
|
||||
@field: NotNull(message = "Source can not be null")
|
||||
val source: String?,
|
||||
val source: String = "",
|
||||
|
||||
@field:NotNull(message = "Dist can not be null")
|
||||
val dist: String?
|
||||
val dist: String = "",
|
||||
|
||||
val enable: Boolean = true
|
||||
)
|
||||
|
||||
@@ -10,5 +10,7 @@ data class ToolBaseUpdateParam(
|
||||
|
||||
val source: String?,
|
||||
|
||||
val dist: String?
|
||||
val dist: String?,
|
||||
|
||||
val enable: Boolean?
|
||||
)
|
||||
|
||||
@@ -19,5 +19,7 @@ data class ToolTemplateAddParam(
|
||||
val source: String?,
|
||||
|
||||
@field:NotNull(message = "Dist can not be null")
|
||||
val dist: String?
|
||||
val dist: String?,
|
||||
|
||||
val enable: Boolean = true
|
||||
)
|
||||
|
||||
@@ -16,5 +16,7 @@ data class ToolTemplateUpdateParam(
|
||||
|
||||
val source: String?,
|
||||
|
||||
val dist: String?
|
||||
val dist: String?,
|
||||
|
||||
val enable: Boolean?
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user