package com.yuchen.saas.park.api.dto.property;


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

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 房间仪表
 * </p>
 *
 * @author cxj
 * @since 2023-11-21
 */
@Data
@ApiModel(value="PropertyHouseMeterAddListDto", description="新增")
public class PropertyHouseMeterAddListDto {


    @NotNull
    @ApiModelProperty(name = "parkId", value = "园区id")
    private Long parkId;

    @ApiModelProperty(name = "buildingId", value = "楼栋id")
    private Long buildingId;
    /**
     * 房间id
     */
    @ApiModelProperty(name = "houseId", value = "房间id")
    private Long houseId;

    @Size(min=1)
    private List<HouseMeter> houseMeterList;

    @Data
    public static class HouseMeter{
        @NotNull
        @ApiModelProperty(name = "meterId", value = "仪表类型id")
        private Long meterId;

        @NotBlank
        @ApiModelProperty(name = "meterFullName", value = "仪表名称")
        private String meterFullName;

        @Min(0)
        @NotNull
        @ApiModelProperty(name = "initNum", value = "初始读数")
        private BigDecimal initNum;

        @ApiModelProperty(name = "remark", value = "备注说明")
        private String remark;

    }


}
