
package com.jeelowcode.framework.constants;
import com.jeelowcode.framework.code.*;
import com.jeelowcode.framework.code.JeeLowCodeErrorCode;

/**
 * 框架 错误码枚举类
 * <p>
 * 低代码 系统，使用 6-001-000-000 段
 */
public interface FrameErrorCodeConstants {

    JeeLowCodeErrorCode SUCCESS = new JeeLowCodeErrorCode(0, "成功");

    // ========== 框架相关  6-001-001-000 ============
    JeeLowCodeErrorCode FRAME_PARAM_ERROR = new JeeLowCodeErrorCode(1_600_001_000, "系统开小差了");
    JeeLowCodeErrorCode FRAME_NOT_ROLE_ERROR = new JeeLowCodeErrorCode(1_600_011_000, "无权限访问");

    JeeLowCodeErrorCode FRAM_SELF_ERROR = new JeeLowCodeErrorCode(1_600_001_001, "自定义错误");
    JeeLowCodeErrorCode FRAME_ISNOT_ADMINISTOR_ERROR = new JeeLowCodeErrorCode(1_600_001_002, "该功能只允许超级管理员操作");


    JeeLowCodeErrorCode FRAME_OP_ERROR = new JeeLowCodeErrorCode(1_600_001_003, "操作失败");
    JeeLowCodeErrorCode FRAME_ENHANCE_ERROR = new JeeLowCodeErrorCode(1_600_001_004, "增强已锁");
    JeeLowCodeErrorCode FRAME_LOGIN_VIEW_ERROR = new JeeLowCodeErrorCode(1_600_001_005,"用户未登录");

    JeeLowCodeErrorCode FRAME_TABLE_NAME_ILLEGAL= new JeeLowCodeErrorCode(1_600_001_006,"表名称不符合");
    JeeLowCodeErrorCode FRAME_DESFORM_CORE_ISEXIT_ERROR = new JeeLowCodeErrorCode(1_600_001_07,"编码已存在");
    JeeLowCodeErrorCode FRAME_PARAM_NULL_ERROR = new JeeLowCodeErrorCode(1_600_001_08,"参数不允许为空");
    JeeLowCodeErrorCode FRAME_MAIN_TABLE_NOT = new JeeLowCodeErrorCode(1_600_001_09,"绑定的主表不存在");
    JeeLowCodeErrorCode FRAME_IMPORT_EXCEL = new JeeLowCodeErrorCode(1_600_001_10,"请使用正确的Excel表导入数据");
    JeeLowCodeErrorCode FRAME_DESFORM_IS_OPEN = new JeeLowCodeErrorCode(1_600_001_11,"该表单需要登录才可访问");

    JeeLowCodeErrorCode FRAME_IMPORT_EXCEL_NOT_DATA = new JeeLowCodeErrorCode(1_600_001_12,"数据不存在");
    JeeLowCodeErrorCode FRAME_IMPORT_EXCEL_STATE_ERROR = new JeeLowCodeErrorCode(1_600_001_13,"表状态不符合");
    JeeLowCodeErrorCode FRAME_CORE_EXIT = new JeeLowCodeErrorCode(1_600_001_14,"编号已存在");

}
