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 @@