diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java new file mode 100644 index 0000000..1d5270c --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java @@ -0,0 +1,63 @@ +package com.newfiber.termite.domain; + +import com.alibaba.fastjson.JSONObject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.math.BigDecimal; +@Data +@ApiModel +public class OneByOneNow implements Serializable { + + @ApiModelProperty("天气现象") + private String text; + + @ApiModelProperty("天气现象编码") + private String code; + + @ApiModelProperty("气温,单位℃") + private BigDecimal temp; + @ApiModelProperty("风级") + private String windClass; + @ApiModelProperty("风速,单位m/s") + private BigDecimal windSpeed; + @ApiModelProperty("风向描述") + private String windDir; + @ApiModelProperty("风向角度,0表示正北风,180表示正南风") + private Integer windAngle; + @ApiModelProperty("相对湿度,单位%") + private Integer rh; + @ApiModelProperty("降水量,单位毫米(mm)") + private BigDecimal prec; + @ApiModelProperty("气压,单位百帕(hPa)") + private Integer pressure; + @ApiModelProperty("云量,单位%") + private Integer clouds; + @ApiModelProperty("体感温度,单位℃") + private Integer feelsLike; + + + + public OneByOneNow(){ + + } + + public OneByOneNow(JSONObject jsonObject){ + this.text = (String) jsonObject.get("text"); + this.code = (String) jsonObject.get("code"); + this.temp = (BigDecimal) jsonObject.get("temp"); + this.windClass = (String) jsonObject.get("wind_class"); + this.windSpeed = (BigDecimal) jsonObject.get("wind_speed"); + this.windDir = (String) jsonObject.get("wind_dir"); + this.windAngle = (Integer) jsonObject.get("wind_angle"); + this.rh = (Integer) jsonObject.get("rh"); + this.prec = (BigDecimal) jsonObject.get("prec"); + this.pressure = (Integer) jsonObject.get("pressure"); + this.clouds = (Integer) jsonObject.get("clouds"); + this.feelsLike = (Integer) jsonObject.get("feels_like"); + } + + +} diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java new file mode 100644 index 0000000..1d5270c --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java @@ -0,0 +1,63 @@ +package com.newfiber.termite.domain; + +import com.alibaba.fastjson.JSONObject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.math.BigDecimal; +@Data +@ApiModel +public class OneByOneNow implements Serializable { + + @ApiModelProperty("天气现象") + private String text; + + @ApiModelProperty("天气现象编码") + private String code; + + @ApiModelProperty("气温,单位℃") + private BigDecimal temp; + @ApiModelProperty("风级") + private String windClass; + @ApiModelProperty("风速,单位m/s") + private BigDecimal windSpeed; + @ApiModelProperty("风向描述") + private String windDir; + @ApiModelProperty("风向角度,0表示正北风,180表示正南风") + private Integer windAngle; + @ApiModelProperty("相对湿度,单位%") + private Integer rh; + @ApiModelProperty("降水量,单位毫米(mm)") + private BigDecimal prec; + @ApiModelProperty("气压,单位百帕(hPa)") + private Integer pressure; + @ApiModelProperty("云量,单位%") + private Integer clouds; + @ApiModelProperty("体感温度,单位℃") + private Integer feelsLike; + + + + public OneByOneNow(){ + + } + + public OneByOneNow(JSONObject jsonObject){ + this.text = (String) jsonObject.get("text"); + this.code = (String) jsonObject.get("code"); + this.temp = (BigDecimal) jsonObject.get("temp"); + this.windClass = (String) jsonObject.get("wind_class"); + this.windSpeed = (BigDecimal) jsonObject.get("wind_speed"); + this.windDir = (String) jsonObject.get("wind_dir"); + this.windAngle = (Integer) jsonObject.get("wind_angle"); + this.rh = (Integer) jsonObject.get("rh"); + this.prec = (BigDecimal) jsonObject.get("prec"); + this.pressure = (Integer) jsonObject.get("pressure"); + this.clouds = (Integer) jsonObject.get("clouds"); + this.feelsLike = (Integer) jsonObject.get("feels_like"); + } + + +} diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoQueryRequest.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoQueryRequest.java new file mode 100644 index 0000000..abad960 --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoQueryRequest.java @@ -0,0 +1,43 @@ +package com.newfiber.termite.domain.request; + +import com.newfiber.common.core.web.request.BaseQueryRequest; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 项目信息表 + * + * @author yanghui + * @date 2024-05-11 + */ +@Data +@EqualsAndHashCode(callSuper = true) +public class ProjectInfoQueryRequest extends BaseQueryRequest { + + /** + * 项目编码 + */ + @ApiModelProperty(value = "项目编码") + private String projectCode; + + /** + * 项目名称 + */ + @ApiModelProperty(value = "项目名称") + private String projectName; + + + /** + * 上传地址 + */ + @ApiModelProperty(value = "上传地址") + private String uploadApi; + + /** + * 字段解释 + */ + @ApiModelProperty(value = "字段解释") + private String fieldExplain; + +} diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java new file mode 100644 index 0000000..1d5270c --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java @@ -0,0 +1,63 @@ +package com.newfiber.termite.domain; + +import com.alibaba.fastjson.JSONObject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.math.BigDecimal; +@Data +@ApiModel +public class OneByOneNow implements Serializable { + + @ApiModelProperty("天气现象") + private String text; + + @ApiModelProperty("天气现象编码") + private String code; + + @ApiModelProperty("气温,单位℃") + private BigDecimal temp; + @ApiModelProperty("风级") + private String windClass; + @ApiModelProperty("风速,单位m/s") + private BigDecimal windSpeed; + @ApiModelProperty("风向描述") + private String windDir; + @ApiModelProperty("风向角度,0表示正北风,180表示正南风") + private Integer windAngle; + @ApiModelProperty("相对湿度,单位%") + private Integer rh; + @ApiModelProperty("降水量,单位毫米(mm)") + private BigDecimal prec; + @ApiModelProperty("气压,单位百帕(hPa)") + private Integer pressure; + @ApiModelProperty("云量,单位%") + private Integer clouds; + @ApiModelProperty("体感温度,单位℃") + private Integer feelsLike; + + + + public OneByOneNow(){ + + } + + public OneByOneNow(JSONObject jsonObject){ + this.text = (String) jsonObject.get("text"); + this.code = (String) jsonObject.get("code"); + this.temp = (BigDecimal) jsonObject.get("temp"); + this.windClass = (String) jsonObject.get("wind_class"); + this.windSpeed = (BigDecimal) jsonObject.get("wind_speed"); + this.windDir = (String) jsonObject.get("wind_dir"); + this.windAngle = (Integer) jsonObject.get("wind_angle"); + this.rh = (Integer) jsonObject.get("rh"); + this.prec = (BigDecimal) jsonObject.get("prec"); + this.pressure = (Integer) jsonObject.get("pressure"); + this.clouds = (Integer) jsonObject.get("clouds"); + this.feelsLike = (Integer) jsonObject.get("feels_like"); + } + + +} diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoQueryRequest.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoQueryRequest.java new file mode 100644 index 0000000..abad960 --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoQueryRequest.java @@ -0,0 +1,43 @@ +package com.newfiber.termite.domain.request; + +import com.newfiber.common.core.web.request.BaseQueryRequest; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 项目信息表 + * + * @author yanghui + * @date 2024-05-11 + */ +@Data +@EqualsAndHashCode(callSuper = true) +public class ProjectInfoQueryRequest extends BaseQueryRequest { + + /** + * 项目编码 + */ + @ApiModelProperty(value = "项目编码") + private String projectCode; + + /** + * 项目名称 + */ + @ApiModelProperty(value = "项目名称") + private String projectName; + + + /** + * 上传地址 + */ + @ApiModelProperty(value = "上传地址") + private String uploadApi; + + /** + * 字段解释 + */ + @ApiModelProperty(value = "字段解释") + private String fieldExplain; + +} diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoSaveRequest.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoSaveRequest.java new file mode 100644 index 0000000..039c057 --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoSaveRequest.java @@ -0,0 +1,42 @@ +package com.newfiber.termite.domain.request; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; + +/** + * 项目信息表 + * + * @author yanghui + * @date 2024-05-11 + */ +@Data +public class ProjectInfoSaveRequest { + + + /** + * 项目编码 + */ + @ApiModelProperty(value = "项目编码") + private String projectCode; + + /** + * 项目名称 + */ + @ApiModelProperty(value = "项目名称") + private String projectName; + + + /** + * 上传地址 + */ + @ApiModelProperty(value = "上传地址") + private String uploadApi; + + /** + * 字段解释 + */ + @ApiModelProperty(value = "字段解释") + private String fieldExplain; +} diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java new file mode 100644 index 0000000..1d5270c --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/OneByOneNow.java @@ -0,0 +1,63 @@ +package com.newfiber.termite.domain; + +import com.alibaba.fastjson.JSONObject; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; +import java.math.BigDecimal; +@Data +@ApiModel +public class OneByOneNow implements Serializable { + + @ApiModelProperty("天气现象") + private String text; + + @ApiModelProperty("天气现象编码") + private String code; + + @ApiModelProperty("气温,单位℃") + private BigDecimal temp; + @ApiModelProperty("风级") + private String windClass; + @ApiModelProperty("风速,单位m/s") + private BigDecimal windSpeed; + @ApiModelProperty("风向描述") + private String windDir; + @ApiModelProperty("风向角度,0表示正北风,180表示正南风") + private Integer windAngle; + @ApiModelProperty("相对湿度,单位%") + private Integer rh; + @ApiModelProperty("降水量,单位毫米(mm)") + private BigDecimal prec; + @ApiModelProperty("气压,单位百帕(hPa)") + private Integer pressure; + @ApiModelProperty("云量,单位%") + private Integer clouds; + @ApiModelProperty("体感温度,单位℃") + private Integer feelsLike; + + + + public OneByOneNow(){ + + } + + public OneByOneNow(JSONObject jsonObject){ + this.text = (String) jsonObject.get("text"); + this.code = (String) jsonObject.get("code"); + this.temp = (BigDecimal) jsonObject.get("temp"); + this.windClass = (String) jsonObject.get("wind_class"); + this.windSpeed = (BigDecimal) jsonObject.get("wind_speed"); + this.windDir = (String) jsonObject.get("wind_dir"); + this.windAngle = (Integer) jsonObject.get("wind_angle"); + this.rh = (Integer) jsonObject.get("rh"); + this.prec = (BigDecimal) jsonObject.get("prec"); + this.pressure = (Integer) jsonObject.get("pressure"); + this.clouds = (Integer) jsonObject.get("clouds"); + this.feelsLike = (Integer) jsonObject.get("feels_like"); + } + + +} diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoQueryRequest.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoQueryRequest.java new file mode 100644 index 0000000..abad960 --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoQueryRequest.java @@ -0,0 +1,43 @@ +package com.newfiber.termite.domain.request; + +import com.newfiber.common.core.web.request.BaseQueryRequest; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; + +/** + * 项目信息表 + * + * @author yanghui + * @date 2024-05-11 + */ +@Data +@EqualsAndHashCode(callSuper = true) +public class ProjectInfoQueryRequest extends BaseQueryRequest { + + /** + * 项目编码 + */ + @ApiModelProperty(value = "项目编码") + private String projectCode; + + /** + * 项目名称 + */ + @ApiModelProperty(value = "项目名称") + private String projectName; + + + /** + * 上传地址 + */ + @ApiModelProperty(value = "上传地址") + private String uploadApi; + + /** + * 字段解释 + */ + @ApiModelProperty(value = "字段解释") + private String fieldExplain; + +} diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoSaveRequest.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoSaveRequest.java new file mode 100644 index 0000000..039c057 --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoSaveRequest.java @@ -0,0 +1,42 @@ +package com.newfiber.termite.domain.request; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import javax.validation.constraints.NotBlank; + +/** + * 项目信息表 + * + * @author yanghui + * @date 2024-05-11 + */ +@Data +public class ProjectInfoSaveRequest { + + + /** + * 项目编码 + */ + @ApiModelProperty(value = "项目编码") + private String projectCode; + + /** + * 项目名称 + */ + @ApiModelProperty(value = "项目名称") + private String projectName; + + + /** + * 上传地址 + */ + @ApiModelProperty(value = "上传地址") + private String uploadApi; + + /** + * 字段解释 + */ + @ApiModelProperty(value = "字段解释") + private String fieldExplain; +} diff --git a/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoUpdateRequest.java b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoUpdateRequest.java new file mode 100644 index 0000000..c2f9f73 --- /dev/null +++ b/newfiber-termites/newfiber-termites-dataup/src/main/java/com/newfiber/termite/domain/request/ProjectInfoUpdateRequest.java @@ -0,0 +1,46 @@ +package com.newfiber.termite.domain.request; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * 项目信息表 + * + * @author yanghui + * @date 2024-05-11 + */ +@Data +public class ProjectInfoUpdateRequest { + + /** + * 项目编码 + */ + @ApiModelProperty(value = "主键id") + private Long id; + + + /** + * 项目编码 + */ + @ApiModelProperty(value = "项目编码") + private String projectCode; + + /** + * 项目名称 + */ + @ApiModelProperty(value = "项目名称") + private String projectName; + + + /** + * 上传地址 + */ + @ApiModelProperty(value = "上传地址") + private String uploadApi; + + /** + * 字段解释 + */ + @ApiModelProperty(value = "字段解释") + private String fieldExplain; +}