Files
auth-backend/src/main/java/com/kurihada/auth/dto/AuditLogQueryRequest.java
T
2025-11-05 23:30:19 +08:00

68 lines
1.1 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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;
}