package com.ho.business.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

//代理电价区域
@Data
public class IndustrialElecRegion implements Serializable {


    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    private Integer id;

    //区域名称
    @ApiModelProperty(value = "区域名称")
    @NotNull(message = "区域名称不能为空")
    @Length(max = 50, message = "validation.regionName.length.message")
    private String regionName;

    private String regionNameEn;


    @ApiModelProperty(value = "更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    //区域峰谷平时间分布
    @ApiModelProperty(value = "区域峰谷平时间分布")
    @NotNull(message = "区域峰谷平时间分布不能为空")
    @Length(max = 5000, message = "validation.interval.length.message")
    private String interval;

    @ApiModelProperty(value = "模型类型")
    @Max(value = 1000,message = "validation.modelType.length.max.message")
    @Min(value = 0,message = "validation.modelType.length.min.message")
    private Integer type;

    @ApiModelProperty(value = "电压等级")
    @NotNull(message = "电压等级不能为空")
    @Length(max = 5000, message = "validation.voltageLevel.length.message")
    private String voltageLevel;

    private String voltageLevelEn;


    @ApiModelProperty(value = "客户类型")
    @NotNull(message = "客户类型不能为空")
    @Length(max = 500, message = "validation.customerType.length.message")
    private String customerType;

    private String customerTypeEn;


    @ApiModelProperty(value = "用电部制、分类")
    @NotNull(message = "用电部制、分类不能为空")
    @Length(max = 5000, message = "validation.electricityType.length.message")
    private String electricityType;

    private String electricityTypeEn;


    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
}
