From 326aa2c5bc00bb3920f0e33d40f335a5f7d89d6c Mon Sep 17 00:00:00 2001 From: cuibaocheng Date: Thu, 26 Aug 2021 11:20:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE=E6=A8=A1?= =?UTF-8?q?=E5=9D=97/=E8=AF=84=E8=AE=BA=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../buildingpictures/util/SHA1Utils.java | 47 ++++ .../configtableoperation/update.html | 235 ++++++++++++++++++ .../contentcomment/ContentCountStatusDTO.java | 97 ++++++++ .../ConfigTableOperationCheckDTO.java | 61 +++++ 4 files changed, 440 insertions(+) create mode 100644 module-building-pictures/src/main/java/cn/com/tenlion/buildingpictures/util/SHA1Utils.java create mode 100644 module-config-table/src/main/resources/templates/configtableoperation/update.html create mode 100644 pojo-config-content/src/main/java/cn/com/tenlion/configcontent/pojo/dtos/contentcomment/ContentCountStatusDTO.java create mode 100644 pojo-config-table/src/main/java/cn/com/tenlion/configtable/pojo/dtos/configtableoperation/ConfigTableOperationCheckDTO.java diff --git a/module-building-pictures/src/main/java/cn/com/tenlion/buildingpictures/util/SHA1Utils.java b/module-building-pictures/src/main/java/cn/com/tenlion/buildingpictures/util/SHA1Utils.java new file mode 100644 index 0000000..babf8eb --- /dev/null +++ b/module-building-pictures/src/main/java/cn/com/tenlion/buildingpictures/util/SHA1Utils.java @@ -0,0 +1,47 @@ +package cn.com.tenlion.buildingpictures.util; + +import java.io.UnsupportedEncodingException; +import java.security.MessageDigest; +import java.security.NoSuchAlgorithmException; + +/** + * SHA1加密 + */ +public class SHA1Utils { + + + public static void main(String[] args) throws Exception { + String shaEncode = shaEncode("jsapi_ticket=sM4AOVdWfPE4DxkXGEs8VPaIYw0hBLm4ZNa4qYC4JTh-FISZ6Y7pfYAsxqKWCHxuELRUyHnzyzsjeY-L1qLOcg&noncestr=aea013299bb54f6ca×tamp=1629451241&url=https://cbc.wgink.ink/systemcard/app/cardconfigarticle/listrelease"); + System.out.println(shaEncode); + } + + /** + * @Comment SHA1实现 + * @Author 崔宝铖 + * @Date 2021年8月20日14:43:25 + * @return + */ + public static String shaEncode(String str) throws Exception { + try { + MessageDigest digest = java.security.MessageDigest + .getInstance("SHA-1"); //如果是SHA加密只需要将"SHA-1"改成"SHA"即可 + digest.update(str.getBytes()); + byte messageDigest[] = digest.digest(); + // Create Hex String + StringBuffer hexStr = new StringBuffer(); + // 字节数组转换为 十六进制 数 + for (int i = 0; i < messageDigest.length; i++) { + String shaHex = Integer.toHexString(messageDigest[i] & 0xFF); + if (shaHex.length() < 2) { + hexStr.append(0); + } + hexStr.append(shaHex); + } + return hexStr.toString(); + } catch (NoSuchAlgorithmException e) { + e.printStackTrace(); + } + return null; + } + +} diff --git a/module-config-table/src/main/resources/templates/configtableoperation/update.html b/module-config-table/src/main/resources/templates/configtableoperation/update.html new file mode 100644 index 0000000..fb33eb2 --- /dev/null +++ b/module-config-table/src/main/resources/templates/configtableoperation/update.html @@ -0,0 +1,235 @@ + + + + + + + + + + + + + + + +
+
+ +
+
+
+ +
+
+ +
+
+
+
+
+
+ + + + + + + \ No newline at end of file diff --git a/pojo-config-content/src/main/java/cn/com/tenlion/configcontent/pojo/dtos/contentcomment/ContentCountStatusDTO.java b/pojo-config-content/src/main/java/cn/com/tenlion/configcontent/pojo/dtos/contentcomment/ContentCountStatusDTO.java new file mode 100644 index 0000000..e1da86a --- /dev/null +++ b/pojo-config-content/src/main/java/cn/com/tenlion/configcontent/pojo/dtos/contentcomment/ContentCountStatusDTO.java @@ -0,0 +1,97 @@ +package cn.com.tenlion.configcontent.pojo.dtos.contentcomment; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +/** + * + * @ClassName: ContentCountStatusDTO + * @Description: CBC内容管理数量状态 + * @Author: CodeFactory + * @Date: 2021-08-02 09:31:18 + * @Version: 3.0 + **/ +@ApiModel +public class ContentCountStatusDTO { + + @ApiModelProperty(name = "businessId", value = "业务表ID") + private String businessId; + @ApiModelProperty(name = "commentCount", value = "评论数量") + private Integer commentCount; + @ApiModelProperty(name = "likeCount", value = "点赞数量") + private Integer likeCount; + @ApiModelProperty(name = "scansCount", value = "查看数量") + private Integer scansCount; + @ApiModelProperty(name = "scansCount", value = "转发数量") + private Integer dispatchCount; + @ApiModelProperty(name = "collectCount", value = "收藏数量") + private Integer collectCount; + @ApiModelProperty(name = "collectCount", value = "是否已点赞") + private Boolean likeStatus; + @ApiModelProperty(name = "collectStatus", value = "是否已收藏") + private Boolean collectStatus; + + public String getBusinessId() { + return businessId == null ? "" : businessId; + } + + public void setBusinessId(String businessId) { + this.businessId = businessId; + } + + public Integer getCommentCount() { + return commentCount; + } + + public void setCommentCount(Integer commentCount) { + this.commentCount = commentCount; + } + + public Integer getLikeCount() { + return likeCount; + } + + public void setLikeCount(Integer likeCount) { + this.likeCount = likeCount; + } + + public Integer getScansCount() { + return scansCount; + } + + public void setScansCount(Integer scansCount) { + this.scansCount = scansCount; + } + + public Integer getDispatchCount() { + return dispatchCount; + } + + public void setDispatchCount(Integer dispatchCount) { + this.dispatchCount = dispatchCount; + } + + public Integer getCollectCount() { + return collectCount; + } + + public void setCollectCount(Integer collectCount) { + this.collectCount = collectCount; + } + + public Boolean getLikeStatus() { + return likeStatus; + } + + public void setLikeStatus(Boolean likeStatus) { + this.likeStatus = likeStatus; + } + + public Boolean getCollectStatus() { + return collectStatus; + } + + public void setCollectStatus(Boolean collectStatus) { + this.collectStatus = collectStatus; + } +} diff --git a/pojo-config-table/src/main/java/cn/com/tenlion/configtable/pojo/dtos/configtableoperation/ConfigTableOperationCheckDTO.java b/pojo-config-table/src/main/java/cn/com/tenlion/configtable/pojo/dtos/configtableoperation/ConfigTableOperationCheckDTO.java new file mode 100644 index 0000000..080d293 --- /dev/null +++ b/pojo-config-table/src/main/java/cn/com/tenlion/configtable/pojo/dtos/configtableoperation/ConfigTableOperationCheckDTO.java @@ -0,0 +1,61 @@ +package cn.com.tenlion.configtable.pojo.dtos.configtableoperation; + +import ink.wgink.module.dictionary.pojo.dtos.DataDTO; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.ArrayList; +import java.util.List; + +/** + * + * @ClassName: ConfigTableOperationCheckDTO + * @Description: 崔宝铖 + * @Author: CodeFactory + * @Date: 2021-06-24 10:59:30 + * @Version: 3.0 + **/ +@ApiModel +public class ConfigTableOperationCheckDTO { + + @ApiModelProperty(name = "checkStatus", value = "审核状态") + private String checkStatus; + @ApiModelProperty(name = "checkRemark", value = "审核记录") + private String checkRemark; + @ApiModelProperty(name = "uid", value = "数据ID") + private String uid; + @ApiModelProperty(name = "configTableId", value = "表单ID") + private String configTableId; + + public String getCheckStatus() { + return checkStatus == null ? "" : checkStatus; + } + + public void setCheckStatus(String checkStatus) { + this.checkStatus = checkStatus; + } + + public String getCheckRemark() { + return checkRemark == null ? "" : checkRemark; + } + + public void setCheckRemark(String checkRemark) { + this.checkRemark = checkRemark; + } + + public String getUid() { + return uid == null ? "" : uid; + } + + public void setUid(String uid) { + this.uid = uid; + } + + public String getConfigTableId() { + return configTableId == null ? "" : configTableId; + } + + public void setConfigTableId(String configTableId) { + this.configTableId = configTableId; + } +}