正在显示
3 个修改的文件
包含
88 行增加
和
2 行删除
.gitignore
0 → 100644
| 1 | +/target/ | ||
| 2 | +!.mvn/wrapper/maven-wrapper.jar | ||
| 3 | +/logs/ | ||
| 4 | +/out/ | ||
| 5 | +.mvn | ||
| 6 | +/xmlFromImf/ | ||
| 7 | +kakoRevice/ | ||
| 8 | +/errorLogs/ | ||
| 9 | +### STS ### | ||
| 10 | +.apt_generated | ||
| 11 | +.classpath | ||
| 12 | +.factorypath | ||
| 13 | +.project | ||
| 14 | +.settings | ||
| 15 | +.springBeans | ||
| 16 | +.sts4-cache | ||
| 17 | + | ||
| 18 | +### IntelliJ IDEA ### | ||
| 19 | +.idea | ||
| 20 | +*.iws | ||
| 21 | +*.iml | ||
| 22 | +*.ipr | ||
| 23 | + | ||
| 24 | +### NetBeans ### | ||
| 25 | +/nbproject/private/ | ||
| 26 | +/build/ | ||
| 27 | +/nbbuild/ | ||
| 28 | +/dist/ | ||
| 29 | +/nbdist/ | ||
| 30 | +/.nb-gradle/ |
| @@ -3,12 +3,25 @@ | @@ -3,12 +3,25 @@ | ||
| 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | 3 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | 4 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | <modelVersion>4.0.0</modelVersion> | 5 | <modelVersion>4.0.0</modelVersion> |
| 6 | - | 6 | + <packaging>jar</packaging> |
| 7 | <groupId>com.sunyo.wlpt</groupId> | 7 | <groupId>com.sunyo.wlpt</groupId> |
| 8 | <artifactId>base</artifactId> | 8 | <artifactId>base</artifactId> |
| 9 | <version>1.0-SNAPSHOT</version> | 9 | <version>1.0-SNAPSHOT</version> |
| 10 | 10 | ||
| 11 | - | 11 | + <name>wlpt-base</name> |
| 12 | + <description>物流平台基础实体包</description> | ||
| 13 | + <properties> | ||
| 14 | + <lombok_sersion>1.18.6</lombok_sersion> | ||
| 15 | + </properties> | ||
| 16 | + <dependencies> | ||
| 17 | + <!-- https://mvnrepository.com/artifact/org.projectlombok/lombok --> | ||
| 18 | + <dependency> | ||
| 19 | + <groupId>org.projectlombok</groupId> | ||
| 20 | + <artifactId>lombok</artifactId> | ||
| 21 | + <version>${lombok_sersion}</version> | ||
| 22 | + <scope>provided</scope> | ||
| 23 | + </dependency> | ||
| 24 | + </dependencies> | ||
| 12 | <build> | 25 | <build> |
| 13 | <plugins> | 26 | <plugins> |
| 14 | <plugin> | 27 | <plugin> |
| 1 | +package com.sunyo.wlpt.base.model.response; | ||
| 2 | + | ||
| 3 | +import lombok.Data; | ||
| 4 | + | ||
| 5 | +import java.io.Serializable; | ||
| 6 | + | ||
| 7 | +@Data | ||
| 8 | +public class ResultJson<T> implements Serializable{ | ||
| 9 | + private static final long serialVersionUID = 1L; | ||
| 10 | + | ||
| 11 | + // 状态码 正确为200 | ||
| 12 | + private String code = "200"; | ||
| 13 | + // 描述 | ||
| 14 | + private String msg = ""; | ||
| 15 | + | ||
| 16 | + private String error; | ||
| 17 | + // 返回对象 | ||
| 18 | + private T data; | ||
| 19 | + //返回的JWT | ||
| 20 | + private String jwtToken; | ||
| 21 | + | ||
| 22 | + public ResultJson() { | ||
| 23 | + } | ||
| 24 | + | ||
| 25 | + public ResultJson(String code) { | ||
| 26 | + this.code = code; | ||
| 27 | + } | ||
| 28 | + | ||
| 29 | + public ResultJson(String code, String msg) { | ||
| 30 | + this.code = code; | ||
| 31 | + this.msg = msg; | ||
| 32 | + } | ||
| 33 | + | ||
| 34 | + public ResultJson(T data) { | ||
| 35 | + this.data = data; | ||
| 36 | + } | ||
| 37 | + | ||
| 38 | + public ResultJson(String code, String msg, T data) { | ||
| 39 | + this.code = code; | ||
| 40 | + this.msg = msg; | ||
| 41 | + this.data = data; | ||
| 42 | + } | ||
| 43 | +} |
-
请 注册 或 登录 后发表评论