package com.ssm.manage.response;

public enum ResponseCode {


    OK("000000","操作成功"),
    SMS_NO_OK("000000","操作成功，由于该分店暂未设置短信功能，因此不会发送短信"),
    SMS_SEND_OK_EXCEPTION("000000","操作成功,但短信发送异常信息为手机号码格式错误"),

    FAILED("010000","操作失败"),
    NONULL("010000","操作失败,欠款比例不能为空"),
    FAILEDPROJECT("030000","未选择消费项目"),
    FAILEDS("010999","项目编码已经存在"),
    FAILEDZD("010001","改用户非总店用户"),
    WAIT("020000","系统繁忙，请稍后再试"),

    //参数异常
    //需要的参数没有上传
    PARAMETER_NOT_EXIST_S("100000","%s不能为空"),
    //参数转换异常
    CONVERSION_EXCEPTION_S("100001","%s转换异常."),
    //参数不符合需求
    NOT_MEET_REQUIREMENTS_S("100002","%s不符合需求."),
    NOT_EQUALS_REQUIREMENTS_S("100003","%s不相等."),
    NOT_EQUALS_REQUIREMENTS_S_new("100006","%s不能相等."),

    //敏感词
    CONTENT_SENSITIVE_WORD("100004","内容包含敏感信息。"),
    //数据格式化异常
    DATA_FORMATTING_ERROR("100005","数据格式化异常"),


    //系统或数据库异常
    //未知系统异常
    UNKNOWN_SYSTEM_EXCEPTION("200000","未知系统异常。"),
    //数据库异常
    DATABASE_EXCEPTION("200001","数据库异常."),
    //数据已经存在
    DATA_ALREADY_EXISTS_S("200002","%s已经存在."),
    DATA_ALREADY_EXISTS_SS("200009","已经关联项目的项目类型不允许修改."),
    DATA_ALREADY_EXISTS_SSS("200010","该充值类型交易已经存在，不可删除"),
    DATA_ALREADY_EXISTS_SSSS("200011","该充值类型交易已经存在，不可修改类型"),

    //数据超过最大限制
    DATA_EXCEEDS("200003","超过最大允许数量." ),
    //数据不存在
    DATA_DOES_NOT_EXISTS_S("200004","%s不存在"),
    //数据库不存在该数据
    NO_DATA("200005","数据不存在."),
    DATA_NOT_ALLOW_UPDATE("200007","%s禁止修改"),
    DATA_NOT_ALLOW_UPDATES("200007","%s审核"),
    DATA_NOT_ALLOW_UPDATESS("200007","%s反审核"),
    DATA_NOT_ALLOW_UPDATESSS("200007","%s删除"),
    DATA_NOT_ALLOW_UPDATESSSS("200007","%s"),
    MSG("200007","%s"),
    BLACK_MSG("200008","%s"),
    REDIS_EXCEPTION("200008","缓存异常"),

    ACTIVITY_DOES_NOT_EXISTS("210001","活动不存在"),
    ACTIVITY_WAS_OVER("210002","活动已经结束"),
    ACTIVITY_IS_NOT_START("210003","活动没有开始"),
    ACTIVITY_NOT_ON_TIME("210004","不是活动时间"),
    ACTIVITY_DO_NOT_BEFORE_START_TIME_S("210005","活动开始时间不能早于%s"),
    ACTIVITY_DO_NOT_AFTER_END_TIME_S("210005","活动结束时间不能晚于%s"),
    //用户登录异常
    //未登录
    NOT_LOGIN("502001","没有登录"),
    //授权异常
    AUTHENTICATION_FAILED("300001","授权异常"),
    //没有权限
    NO_PERMISSIONS("300002","没有权限"),
    //没有该用户
    NO_USER("300003","没有该用户."),

    //账号或密码错误
    ACCOUNT_OR_PW_ERROR("300005","账号或密码错误."),

    ENCRYPT_ERROR("300006","数据异常"),
    NOT_SUPER_ADMIN("300007","不是超级管理员"),
    //账号或密码错误
    PASS_ERROR("300008","密码错误."),

    //用户状态异常
    //主账号未注册   --取消
    MASTER_ACCOUNT_IS_NOT_REGISTER("400001","账号未注册."),
    //余额不足
    BALANCE_IS_INSUFFICIENT("400002","余额不足."),
    UNKNOWN_SYSTEM_EXCEPTION_REF("400003","当前账户余额不足，无法取款退款"),




    //文件上传异常
    //文件路径为空
    FILE_PATH_ISNULL("600001", "文件路径为空."),
    //文件为空
    FILE_ISNULL("600002", "文件为空."),
    //文件上传失败
    FILE_UPLOAD_FAILED("600003", "上传失败."),
    //文件不存在
    FILE_NOT_EXIST("600004", "文件不存在."),
    //文件下载失败
    FILE_DOWNLOAD_FAILED("600005", "文件下载失败"),
    //删除失败
    FILE_DELETE_FAILED("600006", "文件删除失败."),
    //服务器连接失败
    FILE_SERVER_CONNECTION_FAILED("600007", "服务器连接失败."),
    //文件超过大小限制
    FILE_OUT_SIZE("600008", "文件超过大小限制."),
    //图片类型错误
    FILE_TYPE_ERROR_IMAGE("600009", "图片类型错误"),
    //文档类型错误
    FILE_TYPE_ERROR_DOC("610000", "文档类型错误"),
    //音频文件错误
    FILE_TYPE_ERROR_VIDEO("600011", "音频文件类型错误"),
    //压缩文件类型错误
    FILE_TYPE_ERROR_COMPRESS("600012", "压缩文件类型错误"),

    CHECK_OK("710001","检测通过"),
    CHECK_ERR("710002","检测未通过，转入门店水牌号存在重复"),

    TOKEN_NOT_NULL("510001","Token不能为空"),
    TOKEN_IS_EXPIRED("510002","Token已经过期"),
    DECRYPT_FAILED("510003","解密异常"),
    ENCRYPT_FAILED("510004","加密异常"),
    SMS_URL_IS_NULL("510005","短信接口url为空"),
    SMS_ACCOUNT_IS_NULL("510006","短信接口账号为空"),
    SMS_PASSWORD_IS_NULL("510007","短信接口密码为空"),
    PHONE_IS_NULL("510008","手机号码为空"),
    SMS_SEND_EXCEPTION("510009","短信发送异常信息为%s"),
    SMS_CODE_IS_OVER("510010","验证码已过期"),
    PRO_TYPE_EXIST_PRO("510011","项目类型存在还在使用的项目,不允许%s"),
    CANCEL_NOT_PERMISSION("510012","%s,不允许作废"),
    CANCEL_NOT_PERMISSIONS("510028","%s,不允许修改"),
    COURSE_NOT_PERMISSION("510013","%s,不允许购买疗程"),
    STORE_CASH_NOT_PERMISSION("510014","%s,不允许收银消费"),
    RECHARGE_NOT_PERMISSION("510015","%s,不允许充值"),
    STORE_IS_STOPED("510016","门店已停用"),
    SMS_CODE_IS_ERR("510017","验证码错误"),
    MINUMUM_PRICE_LOW("510018","%s低于最低价"),
    PRICE_COMPARE_MORE_THAN("510019","%s大"),
    NOT_ALLOW_UPDATE_STATE("510020","当前状态不允许%s"),
    IS_ALREADY_STOP("510021","%s已停用"),
    IS_INSUFFICIENT("510022","%s不足"),
    PROMOTION_NOT_PERMISSION("510023","%s,不允许购买疗程"),
    DELETE_NOT_PERMISSION("510024","%s,不允许删除"),
    DEBT_NOT_PERMISSION("510025","%s,不允许欠款"),
    DEBT_NOT_PERMISSIONA("510027","%s,欠款金额大于欠款最大比例"),
    REFUND_NOT_PERMISSION("510026","%s,不允许退款"),
    NOT_LIFT("510028","升降级前账户存在欠款,不允许升降"),
    NOT_RECHARGE_PAY("510029","%s,不支持使用促销卡支付"),
    HEAVY_LOAD("000000","你已领取该优惠卷！"),
    MEMBER_ID_REPAT("60099","会员卡不能重复"),
    PROMATION_is_ZERO("60010","打包项目有价格为零的项目，建议使用买就送促销服务"),
    PROMATION_RECHARGE_MONEY("60020","促销充值卡金额有误，请检查");


    private String code;
    private String msg;

    ResponseCode(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
