package com.ho.business.vo.req.device;

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

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author fancl
 * @desc: 设备修改请求实体
 * @date 2023/3/18
 */
@Data
public class DeviceUpdateReq {
    @NotNull(message = "设备id不能为空")
    @ApiModelProperty(value = "设备id")
    Integer id;

    @ApiModelProperty(value = "设备名称")
    @Length(max = 50,message = "设备名称不能超过50个字符")
    String deviceName;

    //@NotNull(message = "设备id不能为空")
    @ApiModelProperty(value = "设备品类")
    Integer category;

    @ApiModelProperty(value = "设备类型")
    String deviceType;

    @ApiModelProperty(value = "设备型号")
    @Length(max = 50,message = "设备型号不能超过50个字符")
    String deviceModel;

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

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

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

    @ApiModelProperty(value = "每千瓦时费用单价(单位元)")
    private BigDecimal kwhFee;

    @ApiModelProperty(value = "每次的服务费(单位元)")
    private BigDecimal serviceFee;

    //是否隐藏 1 隐藏 0 不隐藏 默认0
    @ApiModelProperty(value = "是否隐藏 1 隐藏 0 不隐藏 默认0")
    private Integer hide;

    /**
     * 厂家名称
     */
    @ApiModelProperty(value = "厂家名称")
    private String producer;

    @ApiModelProperty(value = "电流流向（1正充负放，2正放负充）")
    private Integer flowDirection;

    @ApiModelProperty(value = "厂家设备型号")
    private String producerType;

    @ApiModelProperty(value = "电量单位类型")
    private Integer unitType;
}
