Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
k.e.book.common.enums.ResultCodeEnum Maven / Gradle / Ivy
package k.e.book.common.enums;
public enum ResultCodeEnum {
/**
* @Description: 状态码枚举
*/
SUCCESS(200, "OK"),
ERROR(500, "fail"),
NEED_LOGIN(1001, "need login"),
NEED_XING_QIU_LOGIN(1002, "need xingqiu login"),
UNKNOWN_EXCEPTION(10000, "系统未知异常"),
INVALID_EXCEPTION(10001, "参数格式校验失败"),
TO_MANY_REQUEST(10002, "请求流量过大,请稍后再试"),
MANY_REQUEST(10004, "系统繁忙!"),
USER_MANY_REQUEST(10005, "操作繁忙!"),
SMS_CODE_EXCEPTION(10002, "验证码获取频率太高,请稍后再试"),
PARAMS_VALIDATION_ERROR(1000003, "请求参数异常"),
REPEAT_PROCESSING(500, "正在处理,请稍后重试"),
USER_NOT_FOUND(500, "用户不存在"),
PAY_TYPE_ERROR(500, "支付类型错误"),
NEED_REAL_NAME_CERTIFY(2000, "请先实名认证"),
ITEM_NOT_FUND(100000, "商品不存在"),
ITEM_USER_PAY(100001, "用户已经购买"),
ITEM_USER_JOIN(100002, "用户已经加入"),
ORDER_UN_PAY(100004, "订单待支付"),
WX_OPENID_NOT_FOUND(100005, "系统繁忙"),
NOT_COMPOSE(100006, "不能合成"),
LIMIT_COUNT(100007, "超过限制数"),
SMS_VERIFY_ERROR(10006, "验证码错误"),
GOODS_ON_SALE(20000, "藏品已挂单"),
GOODS_OPERATE_OTHERS(20001, "不能操作其他人的藏品"),
GOODS_NOT_SALE(20002, "藏品没有售卖"),
GOODS_ON_SHELF_ERROR(20003, "出售藏品失败,请稍后再试"),
GOODS_OFF_SHELF_ERROR(20003, "取消售卖失败,请稍后再试"),
GOODS_SALE_PRICE_ERROR(20004, "请输入区间范围内的金额"),
WALLET_VERIFY_ERROR(30000, "钱包校验出错"),
WALLET_HAPPEN_ERROR(30000,"钱包操作金额必须大于0"),
WALLET_NOT_OPEN(30001, "用户还没有开通钱包"),
WALLET_PASSWORD_ERROR(30002, "支付密码错误"),
WALLET_PASSWORD_MAX_FAIL_ERROR(30002, "支付密码一天错误超过%s次,请1小时后再试"),
WALLET_NOT_PASSWORD_ERROR(30003, "请先设置支付密码"),
WALLET_SET_PASSWORD_ERROR(30005, "两次密码不相同,请重新输入"),
WALLET_OPERATE_TYPE_UNKNOW_ERROR(30006, "钱包操作类型错误"),
WALLET_ABLE_NOT_ENOUGH(30007, "钱包余额不足"),
WALLET_FREEZE_NOT_ENOUGH(30008, "钱包冻结余额不足"),
WALLET_INIT_ERROR(30000,"初始化钱包错误"),
WALLET_BIND_ACCOUNT_IS_NULL(30009, "用户绑定的账户为空"),
WALLET_BALANCE_VERIFY_ERROR(30010, "钱包余额校验失败"),
WALLET_RECHARGE_MIN_ERROR(30011, "钱包充值最小1元"),
WALLET_RECHARGE_MAX_ERROR(30011, "钱包充值最大2万元"),
WALLET_RECHARGE_LIMIT(30012, "杉德支付一天充值金额不能超过5万"),
WITHDRAW_APPLY_USER_DIFF(40001, "不能对其他人的账户申请提现"),
WITHDRAW_APPLY_ERROR(40002, "提现申请失败"),
WITHDRAW_APPLY_ACCOUNT_VERIFY_ERROR(40002, "提现账号校验失败"),
WITHDRAW_NOT_FOUND_ERROR(40003, "提现记录不存在"),
WITHDRAW_CANCEL_NOT_APPLY_STATUS(40004, "提现申请状态的订单才能取消"),
WITHDRAW_CANCEL_ERROR(40005, "取消失败"),
WITHDRAW_AUDIT_NOT_APPLY_ERROR(40006, "提现申请状态才能审核"),
WITHDRAW_AUDIT_RESULT_IS_EMPTY_ERROR(40007, "审核结果不能为空"),
WITHDRAW_AUDIT_RESULT_INVALID_ERROR(40008, "审核结果不能为空"),
WITHDRAW_AUDIT_ERROR(40009, "审核结果不能为空"),
WITHDRAW_WITHDRAW_NOT_PASS_ERROR(40010, "审核没有通过"),
WITHDRAW_WITHDRAW_NOT_APPLY_ERROR(40011, "提现不在审核中状态"),
WITHDRAW_UPDATE_ERROR(40012, "更新提现记录失败"),
WITHDRAW_MONEY_TOO_LARGE_ERROR(40013, "金额过大"),
WITHDRAW_DAILY_LIMIT(40014, "杉德提现金额一天不能超过5万"),
ORDER_CREATE_ERROR(50001, "订单创建失败"),
ONLY_CREATE_ONE_ORDER_ERROR(7001, "每个账号只能有一个待支付的订单,请前往'个人中心'-'我的订单'中支付或者取消!"),
ID_IS_NULL(400, "ID不能为空"),
FUNCTION_UPGRADING_MAINTENANCE(10000, "该功能升级维护中"),
WALLET_RECHARGE_NOT_FOUND(60001, "钱包充值记录不存在"),
WALLET_PAY_ERROR(60002, "钱包支付失败"),
PASSWORD_ERROR(10007, "密码错误"),
ORDER_NOT_FOUND(12001, "订单不存在"),
ORDER_NOT_UN_PAID(12002, "只有待支付的订单才可以进行支付"),
;
/**
* 返回码
*/
private int code;
/**
* 返回码提示
*/
private String message;
/**
* 构造
*
* @param code
* @param message
*/
ResultCodeEnum(Integer code, String message) {
this.code = code;
this.message = message;
}
/**
* 返回码提示
*/
public String getMessage() {
return message;
}
/**
* 返回码
*/
public int getCode() {
return code;
}
}