调整依赖

This commit is contained in:
wanggeng 2021-09-24 11:35:56 +08:00
parent 8a53486b9c
commit 838bfe1ea2
4 changed files with 39 additions and 27 deletions

View File

@ -88,6 +88,14 @@
<artifactId>jstl</artifactId> <artifactId>jstl</artifactId>
</dependency> </dependency>
<!-- Servlet|JSP|JSTL end --> <!-- Servlet|JSP|JSTL end -->
<!-- wgink start -->
<dependency>
<groupId>ink.wgink</groupId>
<artifactId>basic-annotation</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<!-- wgink end -->
</dependencies> </dependencies>
</project> </project>

View File

@ -65,35 +65,44 @@ public class ErrorResult implements Serializable {
/** /**
* 错误类型 * 错误类型
*/ */
SYSTEM_ERROR(40001), SYSTEM_ERROR(40001, "系统错误"),
ENCODE_ERROR(40002), ENCODE_ERROR(40002, "编码错误"),
DECODE_ERROR(40003), DECODE_ERROR(40003, "解码错误"),
APP_DEPENDENCY_ERROR(40004), APP_DEPENDENCY_ERROR(40004, "APP依赖错误"),
PROPERTIES_ERROR(40005), PROPERTIES_ERROR(40005, "配置属性错误"),
TEXT_ILLEGAL(40101), TEXT_ILLEGAL(40101, "文本非法"),
PARAMS_ERROR(40102), PARAMS_ERROR(40102, "参数错误"),
QUERY_ERROR(40101), QUERY_ERROR(40101, "查询错误"),
SAVE_ERROR(40102), SAVE_ERROR(40102, "保存错误"),
UPDATE_ERROR(40103), UPDATE_ERROR(40103, "更新错误"),
REMOVE_ERROR(40104), REMOVE_ERROR(40104, "删除错误"),
FILE_ERROR(40401), FILE_ERROR(40401, "文件错误"),
TEST_ERROR(40201), TEST_ERROR(40201, "测试错误"),
LOGIN_OUT(40301), LOGIN_OUT(40301, "登录登出"),
TOKEN_ERROR(40302), TOKEN_ERROR(40302, "TOKEN错误"),
USERNAME_PASSWORD_ERROR(40303), USERNAME_PASSWORD_ERROR(40303, "用户名密码错误"),
USER_EXIST(40304), USER_EXIST(40304, "用户存在"),
PERMISSION_ERROR(40401), DEVICE_ERROR(40501, "设备错误"),
DEVICE_ERROR(40501), DEVICE_VERSION_ERROR(40502, "设备版本错误"),
DEVICE_VERSION_ERROR(40502); PERMISSION_ERROR(40601, "权限错误"),
REMOTE_REQUEST_EXCEPTION(40701, "远程请求错误"),
REMOTE_RESPONSE_EXCEPTION(40702, "远程响应错误");
private int value; private int value;
private String summary;
ErrorResultCodeEnum(int value) { ErrorResultCodeEnum(int value, String summary) {
this.value = value; this.value = value;
this.summary = summary;
} }
public int getValue() { public int getValue() {
return value; return value;
} }
public String getSummary() {
return summary == null ? "" : summary.trim();
}
} }
} }

View File

@ -1,4 +1,4 @@
package ink.wgink.service.user.pojo.vos; package ink.wgink.pojo.vos;
import ink.wgink.annotation.CheckEmptyAnnotation; import ink.wgink.annotation.CheckEmptyAnnotation;
import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;

View File

@ -136,11 +136,6 @@
<!-- http client end --> <!-- http client end -->
<!-- wgink start --> <!-- wgink start -->
<dependency>
<groupId>ink.wgink</groupId>
<artifactId>basic-annotation</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
<dependency> <dependency>
<groupId>ink.wgink</groupId> <groupId>ink.wgink</groupId>
<artifactId>basic-exception</artifactId> <artifactId>basic-exception</artifactId>