diff --git a/backend-single/src/main/java/com/emotion/dto/request/ai/AiCallLogQueryRequest.java b/backend-single/src/main/java/com/emotion/dto/request/ai/AiCallLogQueryRequest.java new file mode 100644 index 0000000..fbe8885 --- /dev/null +++ b/backend-single/src/main/java/com/emotion/dto/request/ai/AiCallLogQueryRequest.java @@ -0,0 +1,48 @@ +package com.emotion.dto.request.ai; + +import io.swagger.v3.oas.annotations.media.Schema; +import lombok.Data; + +import javax.validation.constraints.Max; +import javax.validation.constraints.Min; +import javax.validation.constraints.Size; +import java.time.LocalDateTime; + +/** + * AI 调用日志查询请求 + */ +@Data +@Schema(description = "AI 调用日志查询请求") +public class AiCallLogQueryRequest { + + @Schema(description = "状态:running / success / failed") + private String status; + + @Schema(description = "场景编码") + private String sceneCode; + + @Schema(description = "服务商编码") + private String providerCode; + + @Schema(description = "接口编码") + private String endpointCode; + + @Schema(description = "开始时间") + private LocalDateTime startTime; + + @Schema(description = "结束时间") + private LocalDateTime endTime; + + @Schema(description = "入参/出参关键词搜索") + @Size(max = 200, message = "关键词长度不能超过 200") + private String keyword; + + @Schema(description = "页码", example = "1") + @Min(value = 1, message = "页码必须大于 0") + private Integer pageNum = 1; + + @Schema(description = "每页条数", example = "20") + @Min(value = 1, message = "每页条数必须大于 0") + @Max(value = 100, message = "每页条数不能超过 100") + private Integer pageSize = 20; +}