package com.liquidnet.service.kylin.dto.vo.mongo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @author AnJiabin <anjiabin@zhengzai.tv>
 * @version V1.0
 * @Description: TODO
 * @class: KylinIpArea
 * @Package com.liquidnet.service.kylin.dto.vo.mongo
 * @Copyright: LightNet @ Copyright (c) 2021
 * @date 2021/11/24 11:57
 */
@Data
@ApiModel
public class KylinIpAreaVo implements Serializable,Cloneable{
    @ApiModelProperty(value = "mid")
    private String mid;

    @ApiModelProperty(value = "ipBegin")
    private String ipBegin;

    @ApiModelProperty(value = "ipBegin")
    private long ipBeginLong;

    @ApiModelProperty(value = "ipEnd")
    private String ipEnd;

    @ApiModelProperty(value = "ipEnd")
    private long ipEndLong;

    @ApiModelProperty(value = "area")
    private String area;

    @ApiModelProperty(value = "province")
    private String province;

    @ApiModelProperty(value = "city")
    private String city;

    @ApiModelProperty(value = "county")
    private String county;

    @ApiModelProperty(value = "address")
    private String address;

    @ApiModelProperty(value = "createdAt")
    private String createdAt;

    private static final KylinIpAreaVo obj = new KylinIpAreaVo();
    public static KylinIpAreaVo getNew() {
        try {
            return (KylinIpAreaVo) obj.clone();
        } catch (CloneNotSupportedException e) {
            return new KylinIpAreaVo();
        }
    }
}
