用户权限调整,及用户token刷新,日志记录
Some checks failed
local-test分支构建docker并发布运行 / Docker-Build (push) Failing after 1m15s
Some checks failed
local-test分支构建docker并发布运行 / Docker-Build (push) Failing after 1m15s
This commit is contained in:
parent
615b83a681
commit
3a79ff3942
@ -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;
|
||||
}
|
||||
|
@ -2,7 +2,18 @@
|
||||
<!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">
|
||||
<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
|
||||
left join user B on A.from_user_id = B.id
|
||||
where 1 = 1
|
||||
|
Loading…
Reference in New Issue
Block a user