package org.springblade.common.core.domain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

/**
 * @className:SysIpWhitelist
 * @author:cwchen
 * @date:2025-09-09-14:41
 * @version:1.0
 * @description:白名单配置
 */
@Data
public class SysIpWhitelist {

    private Long id;
    private String ipAddress;
    // 脱敏ip地址
    private String ipAddressDes;
    private String ipRangeStart;
    private String ipRangeStartDes;
    private String ipRangeEnd;
    private String ipRangeEndDes;
    private String ipType;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date accessStartTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date accessEndTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createdAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updatedAt;

    private String status;
}
