系统资源管理优化
This commit is contained in:
@@ -7,7 +7,7 @@ import jakarta.validation.constraints.NotBlank;
|
||||
public record SaveSysConfigRequest(
|
||||
@Schema(description = "配置类型", example = "MODEL") @NotBlank(message = "配置类型不能为空") String configType,
|
||||
@Schema(description = "配置名称", example = "qwen-plus-extract") @NotBlank(message = "配置名称不能为空") String configName,
|
||||
@Schema(description = "配置值", example = "{\"modelName\":\"qwen-plus\",\"modelUrl\":\"https://dashscope.aliyuncs.com/compatible-mode/v1\",\"apiKey\":\"sk-demo1234\"}") @NotBlank(message = "配置值不能为空") String configValue,
|
||||
@Schema(description = "配置状态", example = "ENABLED") @NotBlank(message = "配置状态不能为空") String status
|
||||
) {
|
||||
}
|
||||
@Schema(description = "配置值",
|
||||
example = "{\"modelName\":\"qwen-plus\",\"modelUrl\":\"https://dashscope.aliyuncs.com/compatible-mode/v1\",\"apiKey\":\"sk-demo1234\"}") @NotBlank(
|
||||
message = "配置值不能为空") String configValue,
|
||||
@Schema(description = "配置状态", example = "ENABLED") String status) {}
|
||||
|
||||
@@ -3,11 +3,8 @@ package com.labelsys.backend.dto.request;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
|
||||
@Schema(description = "系统配置分页查询请求")
|
||||
public record SysConfigPageQuery(
|
||||
@Schema(description = "配置类型", example = "MODEL") String configType,
|
||||
public record SysConfigPageQuery(@Schema(description = "配置类型", example = "MODEL") String configType,
|
||||
@Schema(description = "配置名称", example = "qwen-plus-extract") String configName,
|
||||
@Schema(description = "配置状态", example = "ENABLED") String status,
|
||||
@Schema(description = "页码", example = "1") Integer pageNo,
|
||||
@Schema(description = "每页数量", example = "10") Integer pageSize
|
||||
) {
|
||||
}
|
||||
@Schema(description = "每页数量", example = "10") Integer pageSize) {}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.labelsys.backend.dto.request;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
|
||||
@Schema(description = "更新系统配置请求")
|
||||
public record UpdateSysConfigRequest(
|
||||
|
||||
@Schema(description = "配置类型", example = "MODEL") String configType,
|
||||
@Schema(description = "配置名称", example = "qwen-plus-extract") String configName,
|
||||
@Schema(description = "配置值",
|
||||
example = "{\"modelName\":\"qwen-plus\",\"modelUrl\":\"https://dashscope.aliyuncs.com/compatible-mode/v1\",\"apiKey\":\"sk-demo1234\"}") @NotBlank(
|
||||
message = "配置值不能为空") String configValue,
|
||||
@Schema(description = "配置状态", example = "ENABLED") String status) {}
|
||||
Reference in New Issue
Block a user