| | |
| | | import com.dy.pipIrrGlobal.pojoPr.PrStWeather; |
| | | import io.swagger.v3.oas.annotations.media.Schema; |
| | | import jakarta.validation.constraints.NotEmpty; |
| | | import jakarta.validation.constraints.NotNull; |
| | | import lombok.Data; |
| | | |
| | | /** |
| | |
| | | public String id; |
| | | |
| | | /** |
| | | * 气象站FBox序列号 |
| | | */ |
| | | @NotEmpty(message = "气象站FBox序列号") //不能为空也不能为null |
| | | public String fboxId; |
| | | |
| | | /** |
| | | * 气象站名称 |
| | | */ |
| | | @NotEmpty(message = "气象站名称不能为空") //不能为空也不能为null |
| | |
| | | /** |
| | | * 气象站编号 |
| | | */ |
| | | @NotEmpty(message = "气象站编号不能为空") //不能为空也不能为null |
| | | @NotNull(message = "气象站编号不能为空") //不能为空也不能为null |
| | | public Integer no; |
| | | |
| | | |
| | |
| | | |
| | | public PrStWeather toNewPo(){ |
| | | PrStWeather po = new PrStWeather(); |
| | | po.fboxId = this.fboxId; |
| | | po.name = this.name; |
| | | po.no = this.no; |
| | | po.lng = this.lng; |