package com.ho.business.vo.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * @Description 新增电站参数
 * Author yule
 * Date 2022/8/29 17:09
 */
@Data
public class StationReqVO {

    @ApiModelProperty(value = "id", hidden = true)
    private Integer id;

    @ApiModelProperty(value = "部门分组id", hidden = true)
    private Integer groupId;

    @ApiModelProperty(value = "电站父id 顶层pId 为 0,依此递增")
    private Integer pId;

    @ApiModelProperty(value = "部门id")
    private Integer deptId;

    @ApiModelProperty(value = "电站名称")
    @Length(max = 50, message = "电站名称不能超过50个字符")
    private String name;

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

    @ApiModelProperty(value = "经度")
    private BigDecimal longitude;

    @ApiModelProperty(value = "纬度")
    private BigDecimal latitude;

    @ApiModelProperty(value = "装机容量")
    @Range(max = 999999999, message = "装机容量过大")
    private BigDecimal capacity;

    @ApiModelProperty(value = "额定功率")
    @Range(max = 999999999, message = "额定功率过大")
    private BigDecimal ratePower;

    @ApiModelProperty(value = "并网时间")
    private Date gridTime;

    @ApiModelProperty(value = "联系人")
    @Length(max = 30, message = "联系方式不能超过30个字符")
    private String contact;

    @ApiModelProperty(value = "联系方式")
    @Length(max = 30, message = "联系方式不能超过30个字符")
    private String contactDetails;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    private Date updateTime;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "类型")
    private Integer type;

    @ApiModelProperty(value = "sn编号")
    @Length(max = 10, message = "sn编号不能超过10个字符")
    private String sn;

    @ApiModelProperty(value = "舱体数量")
    private Integer cabinNum;

    @ApiModelProperty(value = "sn编号")
    private List<String> snList;

    @ApiModelProperty(value = "图片id集合")
    private List<Integer> pictureIds;

    @ApiModelProperty(value = "日常运维统计 1统计 0不统计")
    private Integer isDailyCount;

    @ApiModelProperty(value = "站首页拓扑类型")
    private Integer topologyType;

    @ApiModelProperty(value = "柜子类型")
    private Integer cupboardType;

    @ApiModelProperty(value = "方案版本号")
    private String planVersion;

    @ApiModelProperty(value = "是否接入光伏（0默认不接入 1接入）")
    private Integer inverterFlag;

    @ApiModelProperty(value = "额定功率(mppt)")
    @Range(max = 999999999, message = "额定功率过大")
    BigDecimal pvPower;

    @ApiModelProperty(value = "卡号")
    private String iccId;

    /**
     * 套餐Id
     */
    @ApiModelProperty(value = "套餐Id")
    private Integer flowMonitorId;

    /**
     * 运营商（1：中国移动2：中国联通3：中国电信）
     */
    @ApiModelProperty(value = " 运营商（1：中国移动2：中国联通3：中国电信）")
    private Integer packageType;

    //图片地址
    @ApiModelProperty(value = "图片地址")
    Integer logoPictureId;

    //发货批次号
    @ApiModelProperty(value = "发货批次号")
    String batchNumber;

    @ApiModelProperty(value = "电站id集合",hidden = true)
    private List<Integer> ids;

    @ApiModelProperty(value = "多语言切换-查询字段")
    private String lang;

}
