diff --git a/ruoyi-framework/src/main/java/com/ruoyi/framework/web/exception/ParamErrorConstants.java b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/exception/ParamErrorConstants.java new file mode 100644 index 0000000..c52bda2 --- /dev/null +++ b/ruoyi-framework/src/main/java/com/ruoyi/framework/web/exception/ParamErrorConstants.java @@ -0,0 +1,29 @@ +package com.ruoyi.framework.web.exception; + +/** + * 参数校验错误常量类 + * 集中管理参数校验的错误码和错误信息 + */ +public class ParamErrorConstants { + // 基础参数错误 + public static final String PARAM_NULL_MSG = "请求参数不能为空"; + + // 微信授权码错误 + public static final String CODE_EMPTY_MSG = "微信授权码不能为空"; + + //用户类型 + public static final String USER_TYPE_INVALID_MSG = "用户类型无效(仅支持0-个人/1-企业)"; + + // 手机号加密数据错误 + public static final String ENCRYPTED_DATA_EMPTY_MSG = "手机号加密数据不能为空"; + + // 加密向量错误 + public static final String IV_EMPTY_MSG = "加密向量不能为空"; + + // 新增日志常量(放在 ParamErrorConstants 或单独的 LogConstants 中) + public static final String LOG_AJAX_RETURN = "返回ajax====================================="; + + // 私有化构造器,禁止实例化 + private ParamErrorConstants() { + } +} \ No newline at end of file