68 lines
1.1 KiB
Java
68 lines
1.1 KiB
Java
package com.kurihada.auth.dto;
|
||
|
||
import lombok.Data;
|
||
import lombok.EqualsAndHashCode;
|
||
import org.springframework.format.annotation.DateTimeFormat;
|
||
|
||
import java.time.LocalDateTime;
|
||
|
||
/**
|
||
* 审计日志查询请求
|
||
*/
|
||
@Data
|
||
@EqualsAndHashCode(callSuper = true)
|
||
public class AuditLogQueryRequest extends PageRequest {
|
||
|
||
/**
|
||
* 用户ID
|
||
*/
|
||
private Long userId;
|
||
|
||
/**
|
||
* 用户名(模糊查询)
|
||
*/
|
||
private String username;
|
||
|
||
/**
|
||
* 操作类型
|
||
*/
|
||
private String actionType;
|
||
|
||
/**
|
||
* 资源类型
|
||
*/
|
||
private String resourceType;
|
||
|
||
/**
|
||
* 资源ID
|
||
*/
|
||
private String resourceId;
|
||
|
||
/**
|
||
* 操作结果(SUCCESS, FAILURE)
|
||
*/
|
||
private String result;
|
||
|
||
/**
|
||
* 租户ID
|
||
*/
|
||
private Long tenantId;
|
||
|
||
/**
|
||
* 开始时间
|
||
*/
|
||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||
private LocalDateTime startDate;
|
||
|
||
/**
|
||
* 结束时间
|
||
*/
|
||
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
||
private LocalDateTime endDate;
|
||
|
||
/**
|
||
* IP地址(精确匹配)
|
||
*/
|
||
private String ipAddress;
|
||
}
|