From fee67ca8a0760315047a52fc4101a8f4f80b7a7f Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期一, 11 十一月 2024 15:02:54 +0800 Subject: [PATCH] 1 --- src/main/java/com/moon/server/entity/ctrl/PubEntity.java | 197 +++++++++++++++++++++++++++++++++++++----------- 1 files changed, 151 insertions(+), 46 deletions(-) diff --git a/src/main/java/com/moon/server/entity/ctrl/PubEntity.java b/src/main/java/com/moon/server/entity/ctrl/PubEntity.java index 21652ab..4792c5c 100644 --- a/src/main/java/com/moon/server/entity/ctrl/PubEntity.java +++ b/src/main/java/com/moon/server/entity/ctrl/PubEntity.java @@ -1,42 +1,115 @@ package com.moon.server.entity.ctrl; -import io.swagger.models.auth.In; +import com.moon.server.entity.shujian.ColorTableEntity; +import com.moon.server.entity.shujian.GradientColorTableEntity; +import com.moon.server.helper.StringHelper; +import java.io.Serializable; +import java.util.Date; import java.util.List; -/** - * 鍙戝竷瀹炰綋绫� - * @author WWW - */ -public class PubEntity { +@SuppressWarnings("ALL") +public class PubEntity implements Serializable { + private static final long serialVersionUID = 1393159573706054735L; + public PubEntity() { + min = 0; + max = 18; + epsg = 104903; + uuid = StringHelper.getGuid(); + time = StringHelper.YMDHMS2_FORMAT.format(new Date()); } + public void setDefault() { + if (null == min) { + min = 0; + } + if (null == max || max == 0) { + max = 18; + } + if (null == epsg || epsg == 0) { + epsg = 104903; + } + if (StringHelper.isEmpty(uuid)) { + uuid = StringHelper.getGuid(); + } + if (StringHelper.isEmpty(time)) { + time = StringHelper.YMDHMS2_FORMAT.format(new Date()); + } + } + + private Integer pubid; + + private Integer layerId; + + private String uuid; + + /** + * DOM锛孌EM锛孷ector锛孧odel + */ private String type; - private String token; - private String name; - - private Integer userId; private Integer min; private Integer max; - private Integer noData; + private Integer epsg; + + private Integer userId; private String dircode; private String depcode; + private Integer nodata; + + /** + * 0锛氫笉鎷変几锛�1 绾挎�ф媺浼革紝2 鐩存柟鍥惧潎琛★紝3 鏍囧噯宸媺浼革紝4 浼介┈鎷変几 + */ + private Integer enhanceType; + + private Double enhanceFactor; + + /** + * 榛樿锛�"1,2,3"锛屾垨涓�"3,2,1" + */ + private String tile_rgb; + private List<Integer> ids; - private List<Integer> models; + private int colorTableId; - private List<Integer> srids; + private List<ColorTableEntity> colorTable; - private List<Double> zs; + private List<GradientColorTableEntity> gradientColorTable; + + private String time; + + public Integer getPubid() { + return pubid; + } + + public void setPubid(Integer pubid) { + this.pubid = pubid; + } + + public Integer getLayerId() { + return layerId; + } + + public void setLayerId(Integer layerId) { + this.layerId = layerId; + } + + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } public String getType() { return type; @@ -46,28 +119,12 @@ this.type = type; } - public String getToken() { - return token; - } - - public void setToken(String token) { - this.token = token; - } - public String getName() { return name; } public void setName(String name) { this.name = name; - } - - public Integer getUserId() { - return userId; - } - - public void setUserId(Integer userId) { - this.userId = userId; } public Integer getMin() { @@ -86,12 +143,20 @@ this.max = max; } - public Integer getNoData() { - return noData; + public Integer getEpsg() { + return epsg; } - public void setNoData(Integer noData) { - this.noData = noData; + public void setEpsg(Integer epsg) { + this.epsg = epsg; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; } public String getDircode() { @@ -110,6 +175,38 @@ this.depcode = depcode; } + public Integer getNodata() { + return nodata; + } + + public void setNodata(Integer nodata) { + this.nodata = nodata; + } + + public Integer getEnhanceType() { + return enhanceType; + } + + public void setEnhanceType(Integer enhanceType) { + this.enhanceType = enhanceType; + } + + public Double getEnhanceFactor() { + return enhanceFactor; + } + + public void setEnhanceFactor(Double enhanceFactor) { + this.enhanceFactor = enhanceFactor; + } + + public String getTile_rgb() { + return tile_rgb; + } + + public void setTile_rgb(String tile_rgb) { + this.tile_rgb = tile_rgb; + } + public List<Integer> getIds() { return ids; } @@ -118,27 +215,35 @@ this.ids = ids; } - public List<Integer> getModels() { - return models; + public int getColorTableId() { + return colorTableId; } - public void setModels(List<Integer> models) { - this.models = models; + public void setColorTableId(int colorTableId) { + this.colorTableId = colorTableId; } - public List<Integer> getSrids() { - return srids; + public List<ColorTableEntity> getColorTable() { + return colorTable; } - public void setSrids(List<Integer> srids) { - this.srids = srids; + public void setColorTable(List<ColorTableEntity> colorTable) { + this.colorTable = colorTable; } - public List<Double> getZs() { - return zs; + public List<GradientColorTableEntity> getGradientColorTable() { + return gradientColorTable; } - public void setZs(List<Double> zs) { - this.zs = zs; + public void setGradientColorTable(List<GradientColorTableEntity> gradientColorTable) { + this.gradientColorTable = gradientColorTable; + } + + public String getTime() { + return time; + } + + public void setTime(String time) { + this.time = time; } } -- Gitblit v1.9.3