
// system系统功能表格初始化id
const SYSTEM_INIT_TABLE_ID = 10000;

// support支撑功能表格初始化id
const SUPPRT_INIT_TABLE_ID = 20000;

// 业务表格初始化id
const BUSINESS_OA_INIT_TABLE_ID = 30000;
const BUSINESS_REP_INIT_TABLE_ID = 40000;

type TYPE_BUSINESS = {
    OA: Record<string, number>,
    ERP: Record<string, number>,
}

type TYPE_TABLE_ID_CONST = {
    BUSINESS: TYPE_BUSINESS,
    SYSTEM: Record<string, number>,
    SUPPORT: Record<string, number>,
}

const TABLE_ID_CONST: TYPE_TABLE_ID_CONST = {
    /**
     * 业务
     */
    BUSINESS: {
        OA: {
            HOME: BUSINESS_OA_INIT_TABLE_ID + 1, // 待办任务
            CSCK_DATA_CHECK_RESULT: BUSINESS_OA_INIT_TABLE_ID + 2, // 校验结果监控
        },
        ERP: {
            GOODS: BUSINESS_REP_INIT_TABLE_ID + 1,
        },
    },
    /**
     * 系统
     */
    SYSTEM: {
        MENU: SYSTEM_INIT_TABLE_ID + 1,
        USER: SYSTEM_INIT_TABLE_ID + 2,
        ROLE: SYSTEM_INIT_TABLE_ID + 3,
    },
    /**
     * 支撑
     */
    SUPPORT: {
        CONFIG: SUPPRT_INIT_TABLE_ID + 1,
        DICT: SUPPRT_INIT_TABLE_ID + 2,
    },
};

export default TABLE_ID_CONST