From b39a9b8b4b4cca906c34d520c9996ff3330b8928 Mon Sep 17 00:00:00 2001 From: Peanut Date: Sun, 24 May 2026 11:45:41 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=20AI=20=E8=B0=83?= =?UTF-8?q?=E7=94=A8=E6=97=A5=E5=BF=97=E6=9F=A5=E8=AF=A2=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=20DTO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/request/ai/AiCallLogQueryRequest.java | 48 +++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 backend-single/src/main/java/com/emotion/dto/request/ai/AiCallLogQueryRequest.java 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; +}