All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.allbs.hj212.model.Device Maven / Gradle / Ivy

There is a newer version: 2.0.0
Show newest version
package cn.allbs.hj212.model;

import cn.allbs.hj212.model.verify.groups.VersionGroup;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.json.bind.annotation.JsonbProperty;
import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.Max;
import java.math.BigDecimal;

/**
 * 功能:
 *
 * @author chenQi
 */
@Data
public class Device {

    @ApiModelProperty(value = "污染治理设施运行状态的实时采样值", name = "RS")
    @Max(value = 5, groups = VersionGroup.V2017.class)
    @JsonProperty("RS")
    @JsonbProperty("RS")
    private int rs;

    @ApiModelProperty(value = "污染治理设施一日内的运行时间", name = "RT")
    @DecimalMax(value = "24", groups = VersionGroup.V2017.class)
    @JsonProperty("RT")
    @JsonbProperty("RT")
    private BigDecimal rt;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy