package com.muchinfo.mtp3pojos.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * IP黑名单
 * </p>
 *
 * @author XKF
 * @since 2024-04-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("IPBACKLIST")
@ApiModel(value="Ipbacklist对象", description="IP黑名单")
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Ipbacklist extends Model<Ipbacklist> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "IP")
    @TableId(value = "IP")
    private String ip;

    @ApiModelProperty(value = "IP类型 - 1:管理端")
    @TableField("IPTYPE")
    private Integer iptype;


    @Override
    public Serializable pkVal() {
        return this.ip;
    }

}
