You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
105 lines
2.8 KiB
105 lines
2.8 KiB
|
3 years ago
|
package com.cyjd.rights.beans;
|
||
|
|
|
||
|
|
public enum ResultCodeEnum
|
||
|
|
{
|
||
|
|
/**
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
success(0, "成功"),//
|
||
|
|
error(500, "服务器错误"),//
|
||
|
|
data_not_exist(50000, "记录不存在"),//
|
||
|
|
param_is_null(10001, "参数为空"),//
|
||
|
|
account_not_exist(10002, "用户不存在"),//
|
||
|
|
account_passwd_error(10003, "用户或密码错误"),//
|
||
|
|
not_login(10004, "未登录或登陆已过期"),//
|
||
|
|
can_not_del_role_has_user(10005, "不能删除此角色,因为关联了用户"),//
|
||
|
|
accout_name_repeat(10007, "登陆账号已被占用,请重新选择一个"),//
|
||
|
|
|
||
|
|
passwd_too_short(20006, "密码不可少于6位"),//
|
||
|
|
account_hast_role(20007, "后台用户至少需要一个角色"),//
|
||
|
|
passwd_not_simple(20013, "原密码不一致"),//
|
||
|
|
date_format_error(20017, "时间格式不正确"),
|
||
|
|
excel_format_error(20018, "时间格式不正确"),
|
||
|
|
//zym
|
||
|
|
verify_code_error(1000001, "验证码错误"),
|
||
|
|
|
||
|
|
repeat_order_error(100008, "重复订单"),
|
||
|
|
|
||
|
|
LinkIdNotExit(60026,"linkId不存在"),
|
||
|
|
|
||
|
|
agent_num_error(10009,"代理商最多配置两个或者至少配置一个"),
|
||
|
|
|
||
|
|
black_user_error(100026,"黑名单用户"),
|
||
|
|
|
||
|
|
cost_error(20019,"成本比格式不对"),
|
||
|
|
|
||
|
|
frequent_operation(100009,"操作频繁"),
|
||
|
|
user_region_not_exit(10027,"未查询到用户归属地请联系运营人员查看"),
|
||
|
|
|
||
|
|
user_region_not_open(10028,"用户归属地非可开通省份"),
|
||
|
|
|
||
|
|
user_is_open(10029,"用户已是包月状态"),
|
||
|
|
|
||
|
|
order_status_error(10030,"订单已经过期或者请求非法"),
|
||
|
|
|
||
|
|
user_month_repeat_open(10031,"该用户本月已经成功订购过,请勿重复订购"),
|
||
|
|
|
||
|
|
rights_status_error(10032,"暂无领取资格"),
|
||
|
|
|
||
|
|
type_error(10011,"type参数有误"),
|
||
|
|
|
||
|
|
user_is_open_or_black(10033,"用户已是包月状态或是黑名单用户"),
|
||
|
|
|
||
|
|
third_party_services_error(10034,"调用第三方服务失败,请联系管理人员"),
|
||
|
|
|
||
|
|
mgc_check_fail(10035,"敏感词校验失败"),
|
||
|
|
|
||
|
|
order_select_error(10036,"未查询到相关订单"),
|
||
|
|
|
||
|
|
rights_this_month_is_receive(10037,"用户当月已经领取过权益"),
|
||
|
|
|
||
|
|
channel_id_error(10038,"渠道id有误"),
|
||
|
|
|
||
|
|
today_is_send(10039,"该用户今天已经发送过验证码了"),
|
||
|
|
|
||
|
|
video_is_not_exit(10040,"视频信息不存在请联系运营查看"),
|
||
|
|
|
||
|
|
province_down(10041,"省份已下线"),
|
||
|
|
|
||
|
|
address_is_not_defined(10042,"缺少推广链接参数"),
|
||
|
|
|
||
|
|
music_name_deficiency(10043,"铃音参数缺失")
|
||
|
|
;
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
private int code;
|
||
|
|
private String desc;
|
||
|
|
|
||
|
|
ResultCodeEnum(int code, String desc)
|
||
|
|
{
|
||
|
|
this.code = code;
|
||
|
|
this.desc = desc;
|
||
|
|
}
|
||
|
|
|
||
|
|
public int getCode()
|
||
|
|
{
|
||
|
|
return code;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setCode(int code)
|
||
|
|
{
|
||
|
|
this.code = code;
|
||
|
|
}
|
||
|
|
|
||
|
|
public String getDesc()
|
||
|
|
{
|
||
|
|
return desc;
|
||
|
|
}
|
||
|
|
|
||
|
|
public void setDesc(String desc)
|
||
|
|
{
|
||
|
|
this.desc = desc;
|
||
|
|
}
|
||
|
|
}
|