package com.seer.teach.common.enums;

/**
 * @Author: Captain
 * @Autograph: 安稳
 * @Description: 这个枚举表示API的自定义响应代码和消息。
 * @Date: 2022-11-03 02:01:09
 */
public enum ResultCodeEnum {

    SUCCESS(200, "成功"),
    BAD_REQUEST(400, "错误的请求"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止访问"),
    NOT_FOUND(404, "未找到"),
    LOGIN_TYPE_ERROR(999, "不支持的登录类型"),
    INVALID_TOKEN(1000, "无效的Token"),
    EXPIRED_TOKEN(1001, "Token已过期"),
    INCONSISTENT_TOKEN_ALGORITHM(1002, "Token算法不一致"),
    INVALIDATED_TOKEN(1003, "Token失效"),
    WX_OAUTH_USED_ERROR(997, "微信oauth_code已使用"),
    WX_SESSION_CODE_USED_ERROR(992, "微信js_code已使用"),
    WX_MINI_QRCODE_CREATE_QRCODE_FAILED(990, "小程序生成二维码失败"),

    AUDIO_UPLOAD_FAILED(741, "音频上传失败"),
    ADDRESS_CANNOT_EXCEED_20(742, "地址数量超过20个"),
    WX_PREPAY_ERROR(800, "微信小程序获取prepayId异常"),
    WECHAT_CERT_FILE_NOT_FOUND(801, "微信商户平台私钥证书获取失败"),
    USERNAME_IS_EXIST(1001, "用户名已经存在"),
    USER_MOBILE_EXIST(1002, "该账号号已经被注册"),
    PHONE_IS_REPEAT(1009, "账号已被注册，请重新输入"),
    USER_NOT_FOUND(1003, "用户不存在"),
    USER_SAVE_ERROR(10031, "用户保存失败"),
    USER_PERMISSION_DENIED_ERROR(1004, "用户权限不足"),
    PLEASE_LOGIN(1005, "请先登录"),
    USERNAME_IS_REPEAT(1006, "用户名重复"),
    USERNAME_OR_PASSWORD_IS_ERROR(1007, "账户名或密码错误"),
    PLEASE_BIND_APP(1008, "请先激活设备"),
    FILE_TOO_LARGE(1010, "图片超出最大限制,图片最大10MB"),
    FILE_UPLOAD_ERROR(1011, "上传失败"),
    FILE_FORMAT_ERROR(1012, "文件类型不合法"),
    EQUIPMENT_NOT_BIND(1013, "设备未绑定"),
    DEVICE_IS_BIND(1014, "该设备已被绑定"),
    AI_CORRECT_ERROR(1016, "批改失败"),
    DEVICE_IS_ERROR(1017, "设备有误，望自重！"),
    DO_NOT_REPEAT_DEVICE(1018, "请勿重复注册设备"),
    WX_LOGIN_FAIL(1019, "微信登录失败"),
    RESET_PASSWORD_FAIL(1020, "重置密码失败"),
    CITY_UPDATE_ERROR(1021, "城市更新失败"),
    EVALUATION_CORRECT_ERROR(1022, "测评批改失败"),
    REVIEW_FAIL(1023, "复习失败"),
    REQUEST_LLM_FAIL(1024, "程序高峰,请重试"),
    WE_CHAT_NOT_ONLINE(1025, "小程序孩子端不在线"),
    NO_REPORT(1026, "无做题数据"),
    NO_DATA(1027, "没有数据"),
    BOOK_ALREADY_EXISTS(1028, "书籍数据已存在"),
    HEALTH_ARTICLE_ALREADY_EXISTS(1029, "该健康知识已存在"),
    SMART_CODE_ALREADY_EXISTS(1030, "改编程知识已存在"),
    FILE_UPLOAD_FAILED(1031, "minio文件上传失败"),
    NOT_BIND_CHILDREN(1032, "未绑定孩子"),
    TYPE_NOT_PROCESSED(1033, "未处理的业务类型"),
    USER_NOT_BIND_DEVICE(1034, "用户未绑定设备"),
    USER_DEVICE_USED(1035, "该设备已经被使用，请自己购买"),
    USER_NOT_PURCHASED(1036, "未购买注册"),
    TV_NOT_ONLINE(1037, "设备不在线"),
    DEVICE_NOT_FOUND(1038, "设备未找到"),
    PLEASE_OPEN_DEVICE(1039, "请先开机"),
    QUESTION_NOT_FOUND(1040, "题目未找到"),
    GRADE_NOT_FOUND(1041, "年级未找到"),
    AUDIO_DATA_ERROR(1042, "音频数据异常"),
    LEVEL_NOT_FOUND(1043, "等级未找到"),
    NO_PREVIEW_DATA(1044, "没有找到预习记录"),
    NO_EVALUATION_RECORD(1045, "没有测评数据"),
    NO_REVIEW_DATA(1045, "没有找到复习记录"),
    THE_MODEL_NOT_ONLINE(1046, "该功能已下线"),
    MODEL_NOT_EXIST(1045, "该型号不存在"),
    IP_DB_INIT_FAIL(1046, "IP数据库初始化失败"),
    NO_REPORT_DATA(1047, "没有报告数据"),
    IM_PUSH_FAIL(1048, "IM 数据推送失败"),
    FILE_TRANS_FAILED(1049, "文件转换失败"),
    APK_FILE_ERROR(1050, "APK文件解析失败,请核对文件"),
    VERSION_REPEAT(1051, "版本重复"),
    PLEASE_DELETE_BEATE(1052, "请先删除选中设备中的历史内测记录"),
    FILE_DELETE_ERROR(1053, "文件删除失败"),
    LOCAL_FILE_NOT_FOUND(1054, "本地文件未找到"),
    PERMISSION_DENIED(99999, "权限不足，拒绝访问"),
    INTERNAL_SERVER_ERROR(99999, "ERROR"),
    USER_FAMILY_EXIST(1054, "已存在家庭，不能重复创建"),
    USER_FAMILY_NOT_EXIST(1055, "监护人不在该家庭中"),
    USER_FAMILY_MEMBER_EXIST(1056, "您已经是该家庭成员"),
    USER_FAMILY_REPEAT_EXIST(1057, "您已经有家庭了，不能加入"),
    USER_NO_PRIMARY_GUARDIAN(1058, "您不是主监护人，不能移除家庭成员"),
    USER_CANNOT_REMOVE_SELF(1059, "不能移除自己"),
    SSE_DATA_IS_NULL(1061, "SSE 无数据推送"),

    API_SN_ERROR(1062, "SN有误"),
    API_IS_DISABLE(1063, "SN已禁用"),
    API_SN_EXPIRE(1064, "SN过期"),
    SIGN_FAIL(1065, "验签失败"),
    APPID_NOT_EXIST(1066,"AppId有误，请检查"),
    SECRET_KEY_NOT_EXIST(1067,"密钥不存在"),
    CORRECT_ERROR(1068,"AI批改失败"),
    DECRYPTED_FAIL(1069,"请检查secret是否正确"),
    VAR_REPLACEMENT_ERROR(1070, "变量替换失败"),
    SUBJECT_IS_NOT_DATA(1071,"该科目无数据" ),
    VERSION_NOT_EXIST(1072, "版本不存在"),
    PROVINCE_NOT_EXIST(1073, "省份不存在"),
    CITY_NOT_FOUND(1074, "城市不存在"),
    IP_NOT_FOUND(1078,"未能获取到有效的IP"),
    OCR_FAIL(1075, "图片识别失败"),
    PROCESS_UPLOAD_FAIL(1076, "模型图片处理失败"),
    CONTEXT_ABOUT_SINGLE_QUESTION_FAIL(1077, "模型图片上下文处理失败"),
    OCR_TEXT_FAIL(1078, "模型图片文本OCR失败"),
    STATUS_UPDATE_ERROR(1079, "状态更新失败"),
            //角色权限枚举
    DO_NOT_OPERATE_SUPER_ADMIN_ROLE(2001, "禁止操作超级管理员"),
    ROLE_CAN_NOT_BE_DELETED(2002, "角色仍有用户在使用，不能删除"),
    THE_ROLE_NAME_IS_REPEATED(2003, "角色名重复，请重试"),
    NO_AUTHORITY_INFO(2004, "没有权限数据"),
    USER_ROLE_NOT_FOUND(2005, "未找到用户角色"),
    ROLE_ALREADY_HAS_THIS_AUTHORITY(2006, "该角色已拥有该权限，请勿重复添加"),
    USER_IS_DISABLED(2007, "该用户被禁用"),
    THE_AUTHORITY_IS_USED(2008, "该权限有角色在使用，暂不能删除"),
    THE_AUTHORITY_HAS_CHILDREN_AUTHORITY(2009, "该权限有子权限不允许删除"),
    USER_ROLE_ALREADY_EXISTS(2010, "用户已经拥有该角色"),
    USER_ROLE_NOT_ASSIGNED(2011, "请先分配角色"),
    THE_ROLE_IS_SYSTEM_ROLE(2013, "系统角色不能删除或编辑"),
    AUTHORITY_NOT_FOUND(2014, "权限点不存在"),
    //商城枚举
    GOODS_TYPE_ALREADY_EXISTS(3001, "商品种类已存在"),
    GOODS_TYPE_NOT_EXISTS(3002, "商品种类不存在"),
    GOOD_SPECIFICATIONS_ALREADY_EXIST(3003, "商品规格已经存在"),
    NO_GOODS_SPECIFICATION_INFO(3004, "没有查询到商品规格信息"),
    GOOD_SPECIFICATIONS_NOT_EXIST(3005, "商品规格不存在"),
    NO_TRACKING_SHIPPING_ADDRESS(3006, "没有查询到收获地址"),
    NO_TRACKING_DEFAULT_SHIPPING_ADDRESS(3007, "没有查询到默认收获地址"),
    GOOD_ALREADY_EXISTS(3009, "商品已经存在"),
    GOOD_UPDATE_ON_SALE(3010, "商品已经上架，不能修改"),
    GOOD_NAME_ALREADY_EXISTS(3011, "商品名称已经存在"),
    GOOD_NOT_FOUND(3012, "商品不存在"),
    GOOD_ALREADY_COLLECTED(3013, "不能重复收藏"),
    GOOD_NOT_APPROVE(3014, "商品%s没有审核通过"),
    GOOD_NON_PENDING_REVIEW(30141, "商品%s不是待审核状态"),
    ORDER_NOT_FOUND(3101, "订单不存在"),
    ORDER_ALREADY_PAID(3102, "订单已支付，请勿重复操作"),
    ORDER_CANCELLED(3103, "订单已取消"),
    ORDER_CANCEL_FAIL(3104, "订单取消失败"),
    ORDER_UPDATE_FAIL(3105, "订单修改失败"),
    ORDER_UPDATE_UNAUTHORIZED(3106, "没有权限修改"),
    ORDER_NON_UPDATE(3107, "该订单状态不允许修改"),
    ORDER_NON_DELETE(31071, "该订单状态不允许删除"),
    ORDER_PAY_ERROR(3008, "订单支付失败，请联系客服"),
    ORDER_NOT_WAIT_SHIP(3022, "订单不是待发货状态"),
    ORDER_NOT_SHIPPED(3023, "订单不是待收货状态"),
    ORDER_NOT_BELONG(30231, "子订单%s不属于该订单%s"),
    ORDER_NOT_WAIT_CLOSED_STATUS(30232, "子订单%s不是待关闭状态"),
    ORDER_CONFIRM_FAIL_STATUS_NOT_WAIT_CONFIRM(3024, "订单不是待确认状态"),
    ORDER_NOT_OFFLINE_PAYMENT(3025, "不是线下订单"),
    ORDER_SAVE_ERROR(3026, "订单创建异常,请联系管理员"),
    ORDER_CLOSE_FAIL(3027, "订单关闭失败"),
    ORDER_UPDATE_ERROR(3028, "订单修改异常,请联系管理员"),

    // 商品属性值相关错误码
    GOODS_ATTRIBUTE_VALUE_NOT_FOUND(3101, "商品属性值不存在"),
    GOODS_ATTRIBUTE_VALUE_ALREADY_EXISTS(3102, "商品属性值已存在"),
    GOODS_ATTRIBUTE_VALUE_IN_USE(3103, "商品属性值已被使用"),
    GOODS_ATTRIBUTE_VALUE_ID_REQUIRED(3104, "商品属性值ID不能为空"),
    GOODS_ATTRIBUTE_VALUE_IDS_REQUIRED(3105, "商品属性值ID列表不能为空"),
    GOODS_ATTRIBUTE_ID_REQUIRED(3106, "商品属性ID不能为空"),
    GOODS_ATTRIBUTE_VALUE_REQUIRED(3107, "商品属性值不能为空"),


    AFTER_SALE_NOT_FOUND(3031, "售后订单不存在"),
    AFTER_SALE_NO_UNAUTHORIZED(30310, "该笔售后单没有权限"),
    AFTER_SALE_STATUS_ERROR(3032, "售后订单状态异常"),
    NO_TRACKING_DEFAULT_ADDRESS(3033, "支付订单前请选择收获地址"),
    COMMENT_EXIST(3034, "创建订单评价失败，订单已评价"),
    ORDER_COMMENT_FAIL_STATUS_NOT_COMPLETED(3035, "创建交易订单项的评价失败，订单不是【已完成】状态"),
    COMMENT_NOT_FOUND(3036, "评价不存在"),
    COMMENT_LIST_QUERY_PARAM_ERROR(3037, "评价列表查询参数异常，商品编码和用户不能同时为空"),
    GOODS_ATTRIBUTE_NAME_IS_REPEATED(3038, "属性名称重复"),
    GOODS_ATTRIBUTE_EXISTS(3039, "属性已经存在"),
    GOODS_ATTRIBUTE_NAME_IS_USED(3040, "属性名称已经被其他属性使用"),
    GOODS_ATTRIBUTE_IN_USE(3041, "商品属性已被使用"),
    AFTER_SALE_EXIST(3042, "该订单号已经申请售后,请耐心等待"),
    COIN_CONFIG_NOT_FOUND(3042, "学豆未配置"),
    COIN_EXCHANGE_RATIO_NOT_ZERO(30421, "学豆兑换比例不能为零"),

    // 物流
    JT_CREATE_ORDER_ERROR(4020, "创建极兔订单失败"),
    JT_QUERY_TRACE_ERROR(4021, "查询极兔物流轨迹失败"),


    //支付枚举
    USER_NOT_ENOUGH_COIN(6014, "账户余额不足"),
    USER_COIN_PAY_ERROR(6015, "账户支付失败"),
    USER_WITHDRAWAL_ACQUIRE_LOCK_ERROR(60161, "获取分布式锁失败，请联系客服"),
    USER_COIN_LOCK_ERROR(6016, "账户被锁定，请联系客服"),
    USER_COIN_AMOUNT_CANNOT_BE_NEGATIVE(6017, "金额不能为负数"),
    COIN_RECHARGE_NOT_FOUND(6018, "充值订单不存在"),
    COIN_RECHARGE_NOT_APPLY_REFUND(6019, "充值订单不是申请退款待审核状态"),
    WX_TRANSFER_ERROR(6044, "微信转账失败"),
    WX_TRANSFER_QUERY_ERROR(6055, "查询微信转账异常"),
    PAY_CHANNEL_ALREADY_EXISTS(6056, "支付渠道已存在"),
    PAY_CHANNEL_IS_NOT_EXIST(6057, "支付渠道不存在"),
    ENABLED_PAY_CHANNEL_CANNOT_BE_DELETED(6058, "启用的支付渠道不能删除"),
    PAY_CHANNEL_NOT_SUPPORTED(6059, "不支持的支付渠道"),
    PAY_CHANNEL_NOT_MATCH(6060, "支付渠道不匹配"),
    ORDER_CREATE_FAILED(6061, "订单创建失败"),
    PAY_CHANNEL_CONFIG_ERROR(6062, "支付渠道配置错误"),
    WX_PAY_STATUS_ERROR(6063, "微信支付状态异常"),
    PAY_ORDER_IS_NOT_EXIST(6064, "支付订单不存在"),
    MERCHANT_EARNINGS_SETTLE_ERROR(6065, "结算商家收益失败，请联系管理员"),
    REFUND_ERROR(6066, "退款失败"),
    MERCHANT_ACCOUNT_IS_LOCKED(606510, "商户账户被锁定"),
    MERCHANT_ACCOUNT_NOT_ENOUGH(606511, "账户余额不足"),
    WITHDRAWAL_CONFIG_NOT_FOUND(606512, "提现配置未找到"),
    WITHDRAWAL_AMOUNT_LESS_THAN_MIN(606513, "提现金额不能低于最低提现金额"),
    WITHDRAWAL_AMOUNT_EXCEEDS_MAX(606514, "提现金额不能超过单日最高提现金额"),
    REVENUE_NOT_ENOUGH(606515, "收益明细不足以覆盖申请金额"),
    WITHDRAWAL_APPLY_NOT_FOUND(606516, "提现申请未找到"),
    WITHDRAWAL_APPLY_STATUS_ERROR(606517, "提现申请状态错误"),
    WITHDRAWAL_AUDIT_STATUS_ERROR(606518, "提现审核状态错误"),
    REFUND_ORDER_SAVE_FAILED(6067, "退款订单保存失败"),
    REFUND_NOTIFY_PARSE_ERROR(6068, "统一退款回调结构解析异常"),
    REFUND_ORDER_IS_NOT_EXIST(60609, "退款订单不存在"),
    ORDER_REFUND_NOTIFY_ERROR(60612, "订单退款通知更新失败"),
    PAY_ORDER_SOURCE_NOT_SUPPORTED(60610, "原支付订单的源不存在"),
    PAY_ORDER_IS_PROCESSED(60611, "该笔支付订单已经处理"),

    /****** 经销商 *******/
    DEALER_APPLICATION_DUPLICATE(70001, "您已提交过申请，请勿重复提交"),
    USER_NOT_BIND_WECHAT(70010, "用户没有关注服务号"),
    PLEASE_USE_YOUR_OWN_ACCOUNT_LOGIN(70020, "请使用自己的账号登录"),
    USER_NOT_HAVE_WAREHOUSE_ROLE(70021, "您不是仓管"),
    MESSAGE_GROUP_NOT_EXIST(70030, "消息群组不存在"),
    MESSAGE_GROUP_USER_NON_EMPTY(70040, "消息群组或用户列表不能同时为空"),
    MESSAGE_GROUP_IS_EMPTY(70041, "消息群组没有人员"),
    TEMPLATE_ID_BUSINESS_SCENE_ALREADY_EXISTS(70042, "该业务场景下的模板配置已经存在"),
    MP_QRCODE_CREATE_TMP_TICKET_ERROR(70080, "服务号生成二维码失败"),

    /****** 后端书籍管理 *******/
    THE_BOOKS_IS_EXIST(8001, "书籍已经存在"),
    THE_BOOKS_IS_NOT_EXIST(8002, "书籍不存在"),
    THE_BOOKS_ID_NULL(8003, "书籍ID不能为空"),
    THE_BOOKS_ID_IS_INVALID(8004, "无效的书籍ID"),
    PLEASE_SELECT_THE_BOOKS_TO_LISTED(8005, "请选择要上架的书籍"),
    PLEASE_SELECT_THE_BOOKS_TO_REMOVE(8006, "请选择要下架的书籍"),
    PLEASE_SELECT_THE_BOOKS_TO_DELETED(8007, "请选择要删除的书籍"),
    BOOKS_HAVE_BEEN_LISTED_NOT_ALLOWED_TO_BE_DELETED(8008, "已上架的书籍不允许删除"),
    NO_READING_RECORD(8009, "用户没有阅读记录"),

    /****** 后端年级管理 *******/
    GRADE_IS_EXIST(9001, "年级已经存在"),
    PLEASE_SELECT_THE_GRADE_TO_DELETED(9002, "请选择要删除的年级"),
    THE_SUBJECT_IS_EXISTS(9003, "该科目已存在"),
    THE_SUBJECT_IS_NOT_EXISTS(9004, "该科目不存在"),
    THE_SUBJECT_IS_NOT_LISTED(9005, "该科目未上架"),
    SUBJECT_IS_NOT_EXIST(9006, "科目不存在"),
    SUBJECT_HAVE_BEEN_LISTED_NOT_ALLOWED_TO_BE_DELETED(9007, "已上架的科目不允许删除"),
    THE_GRADE_TO_USE_NOT_ALLOWED_TO_BE_DELETED(9008, "该年级正在使用中，无法下架"),

    // 商户商品管理相关错误码
    MERCHANT_GOODS_PERMISSION_DENIED(7001, "无权访问该商品信息"),
    MERCHANT_GOODS_UPDATE_DENIED(7002, "无权修改该商品信息"),
    MERCHANT_GOODS_DELETE_DENIED(7003, "无权删除部分或全部商品"),
    MERCHANT_GOODS_RESTORE_DENIED(7004, "无权恢复部分或全部商品"),
    MERCHANT_GOODS_EN_SALE_DENIED(7005, "无权上架部分或全部商品"),
    MERCHANT_GOODS_UN_SALE_DENIED(7006, "无权下架部分或全部商品"),

    // 商户商品属性管理相关错误码
    MERCHANT_GOODS_ATTRIBUTE_PERMISSION_DENIED(7007, "无权访问该商品属性信息"),
    MERCHANT_GOODS_ATTRIBUTE_UPDATE_DENIED(7008, "无权修改该商品属性信息"),
    MERCHANT_GOODS_ATTRIBUTE_DELETE_DENIED(7009, "无权删除部分或全部商品属性"),

    // 商户商品属性值管理相关错误码
    MERCHANT_GOODS_ATTRIBUTE_VALUE_PERMISSION_DENIED(7010, "无权访问该商品属性值信息"),
    MERCHANT_GOODS_ATTRIBUTE_VALUE_UPDATE_DENIED(7011, "无权修改该商品属性值信息"),
    MERCHANT_GOODS_ATTRIBUTE_VALUE_DELETE_DENIED(7012, "无权删除部分或全部商品属性值"),

    // AI模型相关错误码
    MODEL_IDENTIFIER_ALREADY_EXISTS(10001, "模型标识符已存在"),
    API_KEY_PLATFORM_OWNER_ALREADY_EXISTS(10002, "同一平台下每个用户只能有一个API密钥"),

    KNOW_NOT_EXIST(110001, "知识点不存在"),
    PARSET_MATERIAL_DOC_ERROR(110002, "解析教材文档失败"),
    NOT_FOUND_TEMPLATE(110020, "未找到模板"),
    PARSE_TEMPLATE_ERROR(1100201, "解析模板失败"),
    SCENARIO_NOT_FOUND(1100300, "AI场景配置不存在"),
    KNOWLEDGE_POINT_MERGE_ERROR(1100400, "目标知识点不能包含在源知识点中"),
    KNOWLEDGE_POINT_EXISTS(1100401, "该单元中已经存在目标知识点"),
    KNOWLEDGE_POINT_IS_STANDARD(1100402, "该知识点属于人教版标准知识点"),
    SUBJECT_NOT_EXIST(1100403, "学科不存在"),
    UNIT_NOT_EXIST(1100404, "单元不存在"),
    MATERIAL_NOT_EXIST(1100405, "教材不存在"),
    QUESTION_NOT_EXIST(1100406, "题目不存在"),
    WRONG_QUESTION_NOT_EXIST(1100407, "未找到错题"),

    // Grade工具类相关错误码
    GRADE_NAME_NOT_FOUND(1100407, "未找到年级ID对应的名称"),
    GRADE_ID_NOT_FOUND(1100408, "未找到年级名称对应的ID"),

    // 消息群组相关错误码
    MESSAGE_GROUP_EXISTS(1100409, "群组已存在"),
    MESSAGE_GROUP_NOT_FOUND(1100410, "群组不存在"),
    MESSAGE_GROUP_DELETE_FAILED(1100411, "群组删除失败"),

    // 经销商申请相关错误码
    DEALER_APPLICATION_NOT_FOUND(1100412, "申请记录不存在"),
    DEALER_APPLICATION_NO_SELECTION(1100413, "请选择要删除的记录"),
    DEALER_APPLICATION_CANNOT_DELETE(1100414, "待审核或审核通过的记录不允许删除"),

    // 教材文档相关错误码
    MATERIAL_DOCUMENT_NOT_FOUND(1100415, "未找到教材文档"),
    MATERIAL_DOCUMENT_STREAM_FAILED(1100416, "获取教材文档输入流失败"),
    MATERIAL_DOCUMENT_READ_FAILED(1100417, "读取教材文档字节数组失败"),

    // 富文本模板相关错误码
    RICH_TEXT_TEMPLATE_PREVIEW_FAILED(1100418, "预览失败"),
    RICH_TEXT_TEMPLATE_CONVERT_FAILED(1100419, "转换失败"),


    AI_MODEL_NOT_FOUND(12000, "未找到模型"),

    PARENT_ALREADY_SIGNED_UP(13000, "家长已报名参加该活动"),
    RELATION_NOT_FOUND(13001, "关系记录不存在"),
    PARENT_NOT_SIGNED_UP(13002, "家长未报名参加该活动"),
    INVALID_ACTIVITY(13003, "活动不存在或已失效"),
    INVALID_AGENT(13004, "代理商不存在或已失效"),
    AGENT_STATUS_INVALID(13005, "代理商状态无效"),
    AGENT_EMPLOYEE_ALREADY_EXISTS(130051, "代理商员工已存在"),
    AGENT_CONTACT_INFO_INVALID(13006, "联系信息无效"),
    AGENT_NON_PARTICIPANT_ACTIVE(130061, "代理商没有参与该活动"),
    ACTIVITY_NOT_FOUND(13007, "活动不存在"),
    ACTIVITY_ALREADY_EXISTS(13008, "活动已存在"),
    ACTIVITY_NOT_ACTIVE(13009, "活动未开始或已结束"),
    PARTICIPATION_FAILED(13010, "参与活动失败"),
    PARENT_NOT_FOUND(13011, "家长不存在"),
    INVALID_ACTIVITY_STATUS(13012, "无效的活动状态"),
    AGENT_NOT_FOUND(13013, "代理商不存在"),
    PARENT_ALREADY_SIGN_UP(130121, "已经报名参加该活动"),
    UNAUTHORIZED_UPDATE_EMPLOYEE(13013, "无权限更新员工信息"),
    DATA_REPEAT_ERROR(130014, "数据重复"),
    DATA_NOT_EXIST(130015, "数据不存在");

    private int code;
    private String msg;

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

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
