package cn.lihongjie.coal.ipList.dto;

import cn.lihongjie.coal.base.dto.CommonDto;

import io.hypersistence.utils.hibernate.type.basic.Inet;
import io.hypersistence.utils.hibernate.type.basic.PostgreSQLInetType;

import jakarta.persistence.Column;

import lombok.Data;

import org.hibernate.annotations.Comment;
import org.hibernate.annotations.Type;

@Data
public class CreateIpListDto extends CommonDto {
    @Type(PostgreSQLInetType.class)
    @Column(
            columnDefinition = "inet"
    )
    private Inet address;



    @Comment("地址类型 0:黑名单 1:白名单")
    private String addressType;
}
