package com.fdkanfang.common.constant;

/**
 * Created by Owen on 2019/10/25 0025 15:10
 */
public class MsgCode {

    public static final int SUCCESS_CODE = 2000;
    public static final String msg_SUCCESS = "success";

    public static final int ERROR_CODE = 5000;
    public static final String ERROR_MSG = "error";


    // 30xx 公共模块,主要是参数问题
    public static final int e_COMMON_3001 = 3001;
    public static final String msg_COMMON_3001 = "缺少必要参数";

    public static final int e_COMMON_3002 = 3002;
    public static final String msg_COMMON_3002 = "id不存在";

    public static final int e_COMMON_3003 = 3003;
    public static final String msg_COMMON_3003 = "手机号码有误";

    // 31xx 文件参数问题
    public static final int e_COMMON_3100 = 3100;
    public static final String msg_COMMON_3100 = "文件为空";

    //40xx是用户管理模块的
    public static final int e_ADMIN_4001 = 4001;
    public static final String msg_ADMIN_4001 = "用户不存在";

    public static final int e_ADMIN_4002 = 4002;
    public static final String msg_ADMIN_4002 = "密码不正常";

    public static final int e_ADMIN_4003 = 4003;
    public static final String msg_ADMIN_4003 = "该账户已停用，请跟管理员联系";

    //41XX 角色模块
    public static final int e_ADMIN_4100 = 4100;
    public static final String msg_ADMIN_4100 = "角色不存在";

    public static final int e_ADMIN_4101 = 4101;
    public static final String msg_ADMIN_4101 = "管理员账户不能修改";

    //42XX 资源模块
    public static final int e_ADMIN_4200 = 4200;
    public static final String msg_ADMIN_4200 = "资源不存在";

    //43XX 部门模块
    public static final int e_ADMIN_4300 = 4300;
    public static final String msg_ADMIN_4300 = "部门名称已存在";

    //4500 shiro权限
    public static final int e_SHIRO_4500 = 4500;
    public static final String msg_SHIRO_4500  = "没有授权";

    //60xx 算法部分
    public static final int e_RSA_VERTICAL_6000 = 6000;
    public static final String msg_RSA_VERTICAL_6000  = "垂直校验算法异常";















}
