用户权限调整,及用户token刷新,日志记录
Some checks failed
local-test分支构建docker并发布运行 / Docker-Build (push) Failing after 1m15s

This commit is contained in:
tiger_zhou 2024-10-18 10:59:37 +08:00
parent 615b83a681
commit 3a79ff3942
2 changed files with 30 additions and 1 deletions

View File

@ -2,6 +2,7 @@ package club.joylink.xiannccda.dto.event;
import club.joylink.xiannccda.constants.common.CommonLogTypeEnum; import club.joylink.xiannccda.constants.common.CommonLogTypeEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import java.time.LocalDateTime; import java.time.LocalDateTime;
import lombok.Data; import lombok.Data;
@ -9,9 +10,26 @@ import lombok.Data;
public class EventLogPageDTO { public class EventLogPageDTO {
private Long id; private Long id;
@Schema(name = "接口名称")
private String faceName;
@Schema(name = "接口请求大类")
private CommonLogTypeEnum eventType; 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; private String userName;
@Schema(name = "操作人id")
private Long fromUserId; private Long fromUserId;
@Schema(name = "操作人电话")
private String mobile; private String mobile;
@Schema(name = "操作时间")
private LocalDateTime createDateTime; private LocalDateTime createDateTime;
} }

View File

@ -2,7 +2,18 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="club.joylink.xiannccda.mapper.EventLogMapper"> <mapper namespace="club.joylink.xiannccda.mapper.EventLogMapper">
<select id="detailPage" resultType="club.joylink.xiannccda.dto.event.EventLogPageDTO"> <select id="detailPage" resultType="club.joylink.xiannccda.dto.event.EventLogPageDTO">
select A.id, A.event_type, A.create_date_time, A.from_user_id, B.`name` as user_name, B.mobile select A.id,
A.face_name,
A.event_type,
A.sub_event_type,
A.uri,
A.method,
A.parameters,
A.create_date_time,
A.from_user_id,
A.request_success,
B.`name` as user_name,
B.mobile
from event_log A from event_log A
left join user B on A.from_user_id = B.id left join user B on A.from_user_id = B.id
where 1 = 1 where 1 = 1