diff --git a/mcwl-common/pom.xml b/mcwl-common/pom.xml index f0b2370..07add0c 100644 --- a/mcwl-common/pom.xml +++ b/mcwl-common/pom.xml @@ -52,13 +52,13 @@ org.apache.commons commons-lang3 - + com.fasterxml.jackson.core jackson-databind - + com.alibaba.fastjson2 @@ -100,13 +100,165 @@ org.springframework.boot spring-boot-starter-data-redis + + org.springframework.boot + spring-boot-starter-security + + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-aop + + + + com.alibaba + fastjson + 1.2.79 + + + + com.fasterxml.jackson.core + jackson-databind + + + com.fasterxml.jackson.core + jackson-annotations + + + com.fasterxml.jackson.core + jackson-core + + + com.fasterxml.jackson.module + jackson-module-jaxb-annotations + + + + + + + io.springfox + springfox-swagger-ui + 3.0.0 + + + + + com.github.xiaoymin + knife4j-spring-boot-starter + 3.0.3 + + + + + + org.projectlombok + lombok + true + + + + + io.jsonwebtoken + jjwt-api + 0.11.2 + + + io.jsonwebtoken + jjwt-impl + 0.11.2 + runtime + + + io.jsonwebtoken + jjwt-jackson + 0.11.2 + runtime + + + + org.apache.httpcomponents + httpmime + 4.5 + + + + org.springframework.boot + spring-boot-starter-data-redis + + + redis.clients + jedis + + + + org.redisson + redisson + 3.15.5 + + + + cn.hutool + hutool-all + 5.8.17 + + + + + org.locationtech.jts + jts-core + 1.17.0 + compile + + + + + com.qcloud + cos_api + 5.6.133 + + + + com.qcloud + cos-sts_api + 3.1.0 + + + + + org.apache.velocity + velocity-engine-core + 2.0 + + + commons-lang3 + org.apache.commons + + + org.apache.commons commons-pool2 - + + + org.projectlombok + lombok + eu.bitwalker @@ -121,4 +273,4 @@ - \ No newline at end of file + diff --git a/mcwl-common/src/main/java/com/mcwl/common/domain/ResponsetEntity.java b/mcwl-common/src/main/java/com/mcwl/common/domain/ResponsetEntity.java new file mode 100644 index 0000000..31dca53 --- /dev/null +++ b/mcwl-common/src/main/java/com/mcwl/common/domain/ResponsetEntity.java @@ -0,0 +1,18 @@ +package com.mcwl.common.domain; + +import lombok.Data; + +/** + * + */ +@Data +public class ResponsetEntity { + + private Integer code; + + private String message; + + private Object data; + + +} diff --git a/mcwl-common/src/main/java/com/mcwl/common/enums/TXApiCodeEnum.java b/mcwl-common/src/main/java/com/mcwl/common/enums/TXApiCodeEnum.java new file mode 100644 index 0000000..a87b2c4 --- /dev/null +++ b/mcwl-common/src/main/java/com/mcwl/common/enums/TXApiCodeEnum.java @@ -0,0 +1,35 @@ +package com.mcwl.common.enums; + +/** + * + */ +public enum TXApiCodeEnum { + + SUCCESS(0, "成功"), + FAILL(-1, "失败"); + + + private Integer code; + private String desc; + + private TXApiCodeEnum(Integer code, String desc) { + this.code = code; + this.desc = desc; + } + + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public String getDesc() { + return desc; + } + + public void setDesc(String desc) { + this.desc = desc; + } +} diff --git a/mcwl-common/src/main/java/com/mcwl/common/service/ResponseServiceEntity.java b/mcwl-common/src/main/java/com/mcwl/common/service/ResponseServiceEntity.java new file mode 100644 index 0000000..0c4bd86 --- /dev/null +++ b/mcwl-common/src/main/java/com/mcwl/common/service/ResponseServiceEntity.java @@ -0,0 +1,23 @@ +package com.mcwl.common.service; + +import lombok.Data; + +import java.io.Serializable; + +@Data +public class ResponseServiceEntity implements Serializable { + + /** + * 返回值 + */ + private String code; + /** + * 数据 + */ + private T data; + /** + * 消息 + */ + private String msg; + +} diff --git a/mcwl-common/src/main/java/com/mcwl/common/web/ResponseWebEntity.java b/mcwl-common/src/main/java/com/mcwl/common/web/ResponseWebEntity.java new file mode 100644 index 0000000..4b7edf2 --- /dev/null +++ b/mcwl-common/src/main/java/com/mcwl/common/web/ResponseWebEntity.java @@ -0,0 +1,58 @@ +package com.mcwl.common.web; + +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.io.Serializable; + +@Data +public class ResponseWebEntity implements Serializable { + + /** + * 返回值 + */ + @ApiModelProperty("通信状态返回值") + private int code; + /** + * 数据 + */ + @ApiModelProperty("业务数据-泛型") + private T data; + /** + * 签名 + */ + @ApiModelProperty("签名") + private String sign; + /** + * 用户句柄 + */ + @ApiModelProperty("用户句柄") + private String token; + + /** + * 报文流水号(不定长,最大32位),建议使用UUID + */ + @ApiModelProperty("报文流水号") + private String msgSerialNo; + /** + * 报文发送时间(定长,14位),YYYYMMDDHHmmss + */ + @ApiModelProperty("报文发送时间") + private String msgTime; + /** + * 报文版本号(不定长,最大4位) + */ + @ApiModelProperty("报文版本号") + private String msgVer; + /** + * 响应码(定长,4位)成功:0000,业务错误:1XXX,系统级错误:9XXX + */ + @ApiModelProperty("响应码") + private String msgRespCode; + + /** + * 响应码描述 + */ + @ApiModelProperty("响应码描述") + private String msgRespDesc; +} diff --git a/mcwl-framework/pom.xml b/mcwl-framework/pom.xml index b834b04..295fa24 100644 --- a/mcwl-framework/pom.xml +++ b/mcwl-framework/pom.xml @@ -59,6 +59,7 @@ mcwl-system + - \ No newline at end of file +