From 3a79ff3942edbfaddebf6b1460cae7a95db76986 Mon Sep 17 00:00:00 2001 From: tiger_zhou Date: Fri, 18 Oct 2024 10:59:37 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E8=B0=83?= =?UTF-8?q?=E6=95=B4=EF=BC=8C=E5=8F=8A=E7=94=A8=E6=88=B7token=E5=88=B7?= =?UTF-8?q?=E6=96=B0=EF=BC=8C=E6=97=A5=E5=BF=97=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xiannccda/dto/event/EventLogPageDTO.java | 18 ++++++++++++++++++ .../mybatis/mapper/EventLogMapper.xml | 13 ++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) diff --git a/src/main/java/club/joylink/xiannccda/dto/event/EventLogPageDTO.java b/src/main/java/club/joylink/xiannccda/dto/event/EventLogPageDTO.java index cb2bd71..0c547ea 100644 --- a/src/main/java/club/joylink/xiannccda/dto/event/EventLogPageDTO.java +++ b/src/main/java/club/joylink/xiannccda/dto/event/EventLogPageDTO.java @@ -2,6 +2,7 @@ package club.joylink.xiannccda.dto.event; import club.joylink.xiannccda.constants.common.CommonLogTypeEnum; +import io.swagger.v3.oas.annotations.media.Schema; import java.time.LocalDateTime; import lombok.Data; @@ -9,9 +10,26 @@ import lombok.Data; public class EventLogPageDTO { private Long id; + @Schema(name = "接口名称") + private String faceName; + @Schema(name = "接口请求大类") private CommonLogTypeEnum eventType; + @Schema(name = "接口请求类别") + private CommonLogTypeEnum.SubEventType subEventType; + @Schema(name = "接口uri") + private String uri; + @Schema(name = "接口uri method") + private String method; + @Schema(name = "接口请求参数") + private String parameters; + @Schema(name = "接口执行结果0=失败,1=成功") + private Integer requestSuccess; + @Schema(name = "操作人姓名") private String userName; + @Schema(name = "操作人id") private Long fromUserId; + @Schema(name = "操作人电话") private String mobile; + @Schema(name = "操作时间") private LocalDateTime createDateTime; } diff --git a/src/main/resources/mybatis/mapper/EventLogMapper.xml b/src/main/resources/mybatis/mapper/EventLogMapper.xml index 20ab545..a63058d 100644 --- a/src/main/resources/mybatis/mapper/EventLogMapper.xml +++ b/src/main/resources/mybatis/mapper/EventLogMapper.xml @@ -2,7 +2,18 @@