Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rs-cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周健威
rs-cloud-platform
Commits
bd516499
Commit
bd516499
authored
Dec 17, 2020
by
周健威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
248077e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
180 deletions
+7
-180
ResultCode.java
...thub/wxiaoqi/security/common/util/process/ResultCode.java
+0
-180
resultcod.properties
...common/src/main/resources/properties/resultcod.properties
+7
-0
No files found.
ace-common/src/main/java/com/github/wxiaoqi/security/common/util/process/ResultCode.java
View file @
bd516499
...
...
@@ -8,53 +8,11 @@ public class ResultCode {
////////////////////////////参数相关///////////////////////////
//参数非法,请修改
public
static
int
PARAM_ILLEGAL_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"PARAM_ILLEGAL_CODE"
));
//参数时效已过时,不能使用X
public
static
int
PARAM_EPIRE_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"PARAM_EXPIRE_CODE"
));
public
static
int
VEHICLE_IS_BOOKED
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"VEHICLE_IS_BOOKED"
));
// 操作成功
public
static
int
SUCCESS_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"SUCCESS_CODE"
));
// 操作失败
public
static
int
FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"FAILED_CODE"
));
//IM消息删除失败
public
static
int
IM_DELETE_FAIL_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"IM_DELETE_FAIL_CODE"
));
public
static
int
IM_MSG_NOT_EXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"IM_MSG_NOT_EXIST_CODE"
));
// 车辆预定失败,请重试
public
static
int
BOOKED_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"BOOKED_FAILED_CODE"
));
//预定时间不能为空 DATE_TIME_IS_NULL
public
static
int
DATE_TIME_IS_NULL
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"DATE_TIME_IS_NULL"
));
// 预定时间不能小于当前时间
public
static
int
ONLY_BOOK_FROM_TODAY
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ONLY_BOOK_FROM_TODAY"
));
public
static
int
END_TIME_FROM_TODAY
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"END_TIME_FROM_TODAY"
));
// 只能预定两个月内的车辆
public
static
int
ONLY_BOOK_TWO_MONTH
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ONLY_BOOK_TWO_MONTH"
));
// 只能取消预定两个月内的车辆
public
static
int
ONLY_UNBOOK_TWO_MONTH
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ONLY_UNBOOK_TWO_MONTH"
));
// 添加车辆太多
public
static
int
ADD_VEHICLE_MORE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ADD_VEHICLE_MORE"
));
// 停靠公司不能为空
public
static
int
RET_COMPANY_CAN_NOT_BE_NULL
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"RET_COMPANY_CAN_NOT_BE_NULL"
));
// 车牌不能为空
public
static
int
NUMBER_PLAT_CAN_NOT_BE_NULL
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"NUMBER_PLAT_CAN_NOT_BE_NULL"
));
// 选择日期不可取消预定
public
static
int
VEHICLE_CAN_NOT_UNBOOK
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"VEHICLE_CAN_NOT_UNBOOK"
));
//预定日期为空
public
static
int
BOOKED_DATE_IS_EMPTY
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"BOOKED_DATE_IS_EMPTY"
));
public
static
int
TODAY_CAN_NOT_BOOK
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"TODAY_CAN_NOT_BOOK"
));
// 添加车辆失败,请重试
public
static
int
ADD_VEHICLE_FAIL
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ADD_VEHICLE_FAIL"
));
// 修改车辆失败,请重试
public
static
int
UPDATE_VEHICLE_FAIL
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"UPDATE_VEHICLE_FAIL"
));
// 操作失败
public
static
int
NULL_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"NULL_CODE"
));
// 操作出现异常
...
...
@@ -69,32 +27,8 @@ public class ResultCode {
public
static
int
RSTOKEN_NULL_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"RSTOKEN_NULL_CODE"
));
// 数据库操作失败
public
static
int
DB_OPERATION_FAIL_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"DB_OPERATION_FAIL_CODE"
));
// 请求微信接口错误
public
static
int
WXAPI_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"WXAPI_CODE"
));
// 微信用户不存在
public
static
int
WXNOTEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"WXNOTEXIST_CODE"
));
// ajax请求,用户未登录
public
static
int
AJAX_WECHAT_NOTEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"AJAX_WECHAT_NOTEXIST_CODE"
));
// 手机号已绑定人脸
public
static
int
FACE_BIND_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"FACE_BIND_CODE"
));
// 手机号未绑定人脸
public
static
int
FACE_NOTBIND_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"FACE_NOTBIND_CODE"
));
// 人脸识别失败
public
static
int
FACE_NOTEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"FACE_NOTEXIST_CODE"
));
// 人脸比对失败
public
static
int
FACE_COMPARE_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"FACE_COMPARE_FAILED_CODE"
));
// 人脸+眼睛识别失败
public
static
int
EYE_NOTEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"EYE_NOTEXIST_CODE"
));
// redis中的token过期或者为空
public
static
int
REDIS_TOKEN_NULL_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"REDIS_TOKEN_NULL_CODE"
));
// 手机号码已被使用
public
static
int
PHONE_EXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"PHONE_EXIST_CODE"
));
// 获取app用户失败
public
static
int
GET_APPUSER_FAILED_CODE
=
Integer
...
...
@@ -109,122 +43,8 @@ public class ResultCode {
// 手机号已绑定人脸
public
static
int
WX_BIND_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"WX_BIND_CODE"
));
// 人脸已绑定手机号
public
static
int
FACE_BIND_PHONE_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"FACE_BIND_PHONE_CODE"
));
// 新增组织失败
public
static
int
ORG_INSERT_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ORG_INSERT_FAILED_CODE"
));
// 更新组织信息失败
public
static
int
ORG_UPDATE_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ORG_UPDATE_FAILED_CODE"
));
// 新增角色信息失败
public
static
int
ROLE_INSERT_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ROLE_INSERT_FAILED_CODE"
));
// 更新组织信息失败
public
static
int
ROLE_UPDATE_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ROLE_UPDATE_FAILED_CODE"
));
// 组织下已存在超级管理员角色
public
static
int
ROLE_SUPER_ISEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ROLE_SUPER_ISEXIST_CODE"
));
// 角色不存在
public
static
int
ROLE_NOTEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ROLE_NOTEXIST_CODE"
));
// 没有操作菜单的权限
public
static
int
NOT_MENU_AUTH_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"NOT_MENU_AUTH_CODE"
));
// 新增权限失败
public
static
int
INSERT_AUTH_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"INSERT_AUTH_FAILED_CODE"
));
// 更新权限失败
public
static
int
UPDATE_AUTH_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"UPDATE_AUTH_FAILED_CODE"
));
// 角色权限不存在
public
static
int
ROLE_NOTEXIST_AUTH_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ROLE_NOTEXIST_AUTH_CODE"
));
// 无一级角色
public
static
int
NOT_HAVE_LEVEL1
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"NOT_HAVE_LEVEL1"
));
// 账户已存在
public
static
int
ACCOUNT_ISEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ACCOUNT_ISEXIST_CODE"
));
// 账户不存在
public
static
int
ACCOUNT_NOT_EXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ACCOUNT_NOT_EXIST_CODE"
));
// 账户不存在
public
static
int
ORG_DONTHAVE_PUBLIC_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ORG_DONTHAVE_PUBLIC_CODE"
));
// 组织超级管理员已存在
public
static
int
ACCOUNT_FIRST_ISEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ACCOUNT_FIRST_ISEXIST_CODE"
));
// 昵称格式有误,请填写正确昵称
public
static
int
NICKNAME_NULL_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"NICKNAME_NULL_CODE"
));
// 账户已禁用
public
static
int
ACCOUNTINFO_ISDEL
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ACCOUNTINFO_ISDEL"
));
// // 监控设备不存在
// public static int DEVICE_NOTEXIST_CODE = Integer.valueOf(SystemProperty.getResultConfig("DEVICE_NOTEXIST_CODE"));
// // 设备access_token获取失败
// public static int DEVICE_TOKEN_NOTEXIST_CODE = Integer
// .valueOf(SystemProperty.getResultConfig("DEVICE_TOKEN_NOTEXIST_CODE"));
// 操作频繁提示
public
static
int
API_MAX_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"API_MAX_CODE"
));
// 公众号不存在
public
static
int
PUBLIC_NOTEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"PUBLIC_NOTEXIST_CODE"
));
// 公众号不存在
public
static
int
REPEAT_SUB_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"REPEAT_SUB_CODE"
));
// 身份证信息已存在
public
static
int
IDNUM_ISEXIST_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"IDNUM_ISEXIST_CODE"
));
// 身份证信息已存在
public
static
int
IDCARD_INVALID_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"IDCARD_INVALID_CODE"
));
// 企业个人简历不存在
public
static
int
CORP_VITA_NOTEXIST
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"CORP_VITA_NOTEXIST"
));
// 企业个人简历不完善
public
static
int
CORP_VITA_INCOMPLETET
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"CORP_VITA_INCOMPLETET"
));
// 简历有效期内已投
public
static
int
VITA_DELIVERED
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"VITA_DELIVERED"
));
// 岗位已下架
public
static
int
POST_END_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"POST_END_CODE"
));
// 客服下存在粉丝
public
static
int
SERVICE_HAS_FANS
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"SERVICE_HAS_FANS"
));
// 未找到客服信息
public
static
int
NOT_FIND_SERVICE_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"NOT_FIND_SERVICE_CODE"
));
// 非客服身份
public
static
int
NOT_SERVICE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"NOT_SERVICE"
));
// 圈子模块resultInfo类型返回正确码
public
static
int
SCRM_RESULTINFO_SUCCESS_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"SCRM_RESULTINFO_SUCCESS_CODE"
));
// 市接口无数据返回
public
static
int
NO_SELECT_BY_RS
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"NO_SELECT_BY_RS"
));
// 未绑定社保卡
public
static
int
NOT_BIND_SOCIAL_CARD
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"NOT_BIND_SOCIAL_CARD"
));
public
static
int
ORDER_NOT_EXIST
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"ORDER_NOT_EXIST"
));
// 操作失败
public
static
int
STOCK_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"STOCK_CODE"
));
public
static
int
GET_AUTH_INFO_FAILED_CODE
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"GET_AUTH_INFO_FAILED_CODE"
));
public
static
int
WRONG_FORMAT_OF_ID_CARD
=
Integer
.
valueOf
(
SystemProperty
.
getResultConfig
(
"WRONG_FORMAT_OF_ID_CARD"
));
...
...
ace-common/src/main/resources/properties/resultcod.properties
View file @
bd516499
...
...
@@ -79,3 +79,10 @@ ORDER_NOT_EXIST = 20001
PARAM_EXPIRE_CODE
=
1010
1010
=
参数时效已过时,不能使用
#获取用户失败
GET_APPUSER_FAILED_CODE
=
4003
4003
=
获取用户失败
#手机号已绑定微信
WX_BIND_CODE
=
4002
4002
=
手机号已绑定微信
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment