const PRE_EASYV_V3 = '/api/easyv/v3';
const PRE_EASYV_V4 = '/api/easyv/v4';
const PRE_EASYV_V5 = '/api/easyv/v5';
const PRE_SALES_V1 = '/api/easyv-sales/v1';
const PRE_TOOL_V1 = '/api/tool/v1';
const PRE_HP_V1 = '/api/easyv-hp/v1';
const PRE_UAC_V1 = '/api/uac/v1';
const PRE_LOG_V1 = '/api/easyv-log/v1';
const PRE_OMS_V1 = '/api/easyv-oms/v1';
const PRE_FS_V1 = '/api/fs/v1'; // v2 不需要登录，v1需要登录

const easyvV3 = {
  // 大屏
  screenList: '/screen/list',
  // screenGet: '/screen/get',
  screenDelete: '/screen/delete',
  screenUpdate: '/screen/update',
  screenLayersUpdate: '/screen/layers/update',
  screenLayersChange: '/screen/layers/change',
  screenCapture: '/screen/capture',
  // sharedScreenGet: '/share/screen/get',
  screenShareUpdate: '/screen/share/update',
  screenRestore: '/screen/recover',
  // screenExport: '/screen/export',

  //过滤器
  filterList: '/filter/list',
  filterAdd: '/filter/create',
  filterUpdate: '/filter/update',
  filterDelete: '/filter/delete',
  sharedFilterList: '/share/filter/list',

  // 大屏组件

  componentCopy: '/component/copy',
  componentChildCopy: '/component/child/copy',
  componentUpdate: '/component/update',
  componentDataGet: '/component/data/get', // 根据ID获取组件数据
  componentDataChange: '/component/data/change',
  componentDataConfigUpdate: '/component/data/update',
  componentSourceChange: '/component/source/change',
  componentFilterAdd: '/filter/add',
  componentFilterRemove: '/filter/remove',
  componentFilterSort: '/filter/order',
  componentFilterTrigger: '/filter/trigger',
  sharedComponentDataGet: '/share/component/data/get',

  // 数据容器
  containerDataGet: '/container/data/get', // 数据容器la数据

  // 组件信息查询
  componentDataSyanc: '/component/get',

  // 数据源列表
  sourceList: '/source/list',
  sourceAdd: '/source/add',
  sourceDelete: '/source/delete',
  sourceTest: '/source/test',
  sourceDatabaseList: '/source/database/list',
  sourceGet: '/source/get',
  sourceUpdate: '/source/update',

  // 用户相关
  userKeyList: '/user/key/list', // PENDING
  userKeyAdd: '/user/key/add', // PENDING
  userKeyDelete: '/user/key/delete', // PENDING

  // 上传
  signature: '/upload/signature',
  assetsDelete: '/upload/delete',
  assetsUpload: '/upload/assets',

  // 独立组件管理
  constantList: '/constant/list',
  constantAdd: '/constant/add',
  constantUpdate: '/constant/edit',
  constantDelete: '/constant/delete',
  constantPublish: '/constant/publish',
  constantImport: '/constant/import',
  constantExport: '/constant/export',
  constantSort: '/constant/order',

  // 终端组件管理
  mobileConstantList: '/mobile/constant/list',
  mobileConstantAdd: '/mobile/constant/add',
  mobileConstantUpdate: '/mobile/constant/edit',
  mobileConstantDelete: '/mobile/constant/delete',
  mobileConstantPublish: '/mobile/constant/publish',
  mobileConstantImport: '/mobile/constant/import',
  mobileConstantExport: '/mobile/constant/export',
  mobileConstantSort: '/mobile/constant/order',

  // 大屏模板
  templateSort: '/template/order',

  // 字体
  fontList: '/screen/font',
  fontAdd: '/upload/font',

  // 终端交互
  interactionList: '/mobile/list',
  interactionEdit: '/mobile/edit',
  interactionPublish: '/screen/share/open',
  interactionCopy: '/mobile/copy',
  interactionDelete: '/mobile/delete',
  interactionExport: '/mobile/export',
  interactionImport: '/mobile/import',
  interactionGet: '/mobile/get',
  interactionAppByCode: '/share/mobile/mobile/get',
  filterListByCode: '/share/mobile/filter/list',
  // screenGetByCode: '/share/mobile/screen/get',
  interactionUpdate: '/mobile/edit',
  interactionCheckPassword: '/share/mobile/mobile/get',
  interactionPageDelete: '/mobile/page/delete',
  interactionPageCopy: '/mobile/page/copy',

  // 组件主题
  themeList: '/constant/theme/list',
  themePublish: '/constant/theme/publish',
  themeUpdate: '/constant/theme/update',
  themeDelete: '/constant/theme/delete',
  themeCreate: '/constant/theme/create',
  themeExport: '/constant/theme/export',
  themeImport: '/constant/theme/import',
  themeSort: '/constant/theme/order',

  // 收藏夹
  favoriteList: '/favorite/list',
  favoriteDelete: '/favorite/delete',
  favoriteUpdate: '/favorite/update',

  // 行业组件
  moduleList: '/module/list',
  moduleCreate: '/module/create',
  moduleAdd: '/module/add',
  moduleDelete: '/module/delete',
  moduleUpdate: '/module/update',
  modulePublish: '/module/publish',
  moduleExport: '/module/export',
  moduleImport: '/module/import',
  moduleSort: '/module/order',
  moduleCategoryList: '/module/category/list',
  moduleCategoryCreate: '/module/category/create',
  moduleCategoryUpdate: '/module/category/update',
  moduleCategoryDelete: '/module/category/delete',
  moduleCategorySort: '/module/category/order',

  sort: '/order/update',

  // panelGet: '/panel/get', //HACK 已转移到v5
  // sharedPanelGet: '/share/panel/get', //HACK 已转移到v5 并修改为/panel/shared/:id
  panelAdd: '/panel/create',
  panelDelete: '/panel/delete',
  panelUpdate: '/panel/update',
  panelStateAdd: '/panel/state/create',
  panelStateCopy: '/panel/state/copy',
  panelTransform: '/panel/transform',
  panelStateSort: '/panel/state/order',
  panelStateDelete: '/panel/state/delete',

  remoteScreenList: '/remote/screens',
  remoteComponentList: '/remote/components',
  remoteConfig: '/remote/config',
  remoteControlled: '/remote/screen/is-controlled',

  // 应用
  appList: '/app/list',
  appGet: '/app/get',
  appPublish: '/app/publish',
  appRegister: '/app/register',
  appCookieInsert: '/app/insert',
  // appScreenGet: '/insert/screen/get',
  appComponentGet: '/insert/component/data/get',
  appPanelGet: '/insert/panel/get',
  appFilterList: '/insert/filter/list',

  // 门户管理分享
  sharedGatewayFilterList: '/cockpit/filter/list',
  sharedGatewayPanelGet: '/cockpit/panel/get',
  // sharedGatewayAppComponentGet: '/cockpit/component/data/get',// HACK迁移到了/share/component/data/get
};

const easyvV4 = {
  // 空间管理
  spaceList: 'GET /spaces',
  spacesCut: 'PUT /spaces',
  spaceAdd: 'POST /spaces',
  spaceUpdate: 'PATCH /spaces/:id',
  spaceDelete: 'DELETE /spaces/:id',
  spaceAllUser: 'GET /users/list',
  spaceUserList: 'GET /spaces/:id',
  screensMove: 'PATCH /screens/:id',
  spacePatch: 'PATCH /spaces',

  // 大屏组
  groupList: 'GET /groups',
  groupAdd: 'POST /groups',
  groupDelete: 'DELETE /groups/:id',
  groupUpdate: 'PATCH /groups/:id',
  groupSort: 'PATCH /groups/:id',

  loginCaptcha: 'GET /captcha', //获取登陆验证码

  // 组件删除相关
  componentsGetRecycle: 'GET /components/recycle', // 查询回收站内的组件
  componentsDelete: 'POST /components/delete', // 彻底删除组件
  componentsRecover: 'POST /components/recover', // 恢复组件

  // 大屏
  screenAdd: 'POST /screens',
  screenCopy: 'POST /screens',
  screenImport: 'POST /screens/import',
  screenExport: 'POST /screens/:id/export',

  // 大屏拷贝
  copyTemplatePassword: 'GET /screens/collaborate', //获取密码
  postTemplatePassword: 'POST /screens/collaborate', //同步

  // 大屏组件
  componentAdd: 'POST /components',
  componentDelete: 'POST /components/recycle',

  // 用户相关
  userGet: 'GET /users/self',
  userList: 'GET /users',
  userLogin: 'POST /authorizations',
  userLogout: 'DELETE /authorizations/self',
  userSwitch: 'PATCH /authorizations/self',
  userCreate: 'POST /users',
  userDelete: 'DELETE /users/:id',
  userReset: 'PATCH /users/:id',
  userTenants: 'GET /users/self/tenants',
  userEdit: 'PATCH /users/self',

  // 租户相关
  tenantCreate: 'POST /tenants',
  tenantList: 'GET /tenants',
  tenantUserList: 'GET /tenants/:id/users',
  tenantDelete: 'DELETE /tenants/:id',
  tenantInvite: 'POST /tenants/:id/users',
  tenantRemove: 'DELETE /tenants/:tenantId/users/:userId',
  tenantUpdate: 'PATCH /tenants/self',
  tenantPut: 'PUT /tenants/self',

  // license
  getCrt: 'GET /certificates/self/client-configs',
  getUserCrt: 'GET /certificates/self/tenant-configs',
  uploadCrt: 'POST /certificates',
  getCrtInfo: 'GET /certificates/self',

  // 租户组件
  tenantConstantList: 'GET /tenants/self/constants',
  tenantConstantDelete: 'DELETE /tenants/self/constants',
  tenantConstantUpdate: 'PATCH /tenants/self/constants/:id',
  tenantConstantImport: 'POST /tenants/self/constants',
  tenantConstantExport: 'GET /tenants/self/constants/:id',
  tenantConstantSort: 'PATCH /tenants/self/constants',

  // 所有租户组件
  allTenantConstantList: 'GET /tenant-constants',
  allTenantConstantExport: 'GET /tenant-constants/:id',


  //终端交互
  interactionAdd: 'POST /mobiles',
  interactionPageAdd: 'POST /mobiles/:id/pages',

  platform: 'GET /platform-configs',
  updateSetting: 'PATCH /platform-configs',
  putSetting: 'PUT /platform-configs',

  // access
  accessKeys: 'GET /users/self/access-keys',
  accessKeysReset: 'PATCH /users/self/access-keys/:accessId',

  // 平台迁移
  transfer: 'POST /transferring',
  getTransferInfo: 'GET /transferring',
};

const salesV1 = {
  resourceUserStaticMaterical: 'GET /resource/user/static-material',
  resourceUserLayerMaterial: 'GET /resource/user/layer-material'
}

const omsV1 = {
  resourceListGet: 'GET /resource/official/layer-material',
  resourceCreate: 'POST /resource/official/layer-material', // saas 保存为资源 type = '素材广场'
  resourcesDelete: 'DELETE /resource/official/layer-material',
  resourceUpdate: 'PATCH /resource/official/layer-material/:id',
  resourceExport: 'GET /resource/official/layer-material/:id/export',
  resourceImport: 'POST /resource/official/layer-material/import',

  resourcesRelease: 'PATCH /resource/official/layer-material', // 上架
  resourcesUnRelease: 'PATCH /resource/official/layer-material', // 下架
  resourcesSort: 'PATCH /resource/official/layer-material', // 排序

  materialListGet: 'GET /resource/official/static-material',
  materialCreate: 'POST /resource/official/static-material',
  materialsDelete: 'DELETE /resource/official/static-material',
  materialUpdate: 'PATCH /resource/official/static-material/:id',
  materialExport: 'GET /resource/official/static-material/:id',
  materialImport: 'POST /resource/official/static-material/import',

  materialsRelease: 'PATCH /resource/official/static-material', // 上架
  materialsUnRelease: 'PATCH /resource/official/static-material', // 下架
  materialsSort: 'PATCH /resource/official/static-material', // 排序



  materialCategoryListGet: 'GET /resource/official-category',
  materialCategoryCreate: 'POST /resource/official-category',
  materialCategoryUpdate: 'PATCH /resource/official-category/:id',
  materialCategoryDelete: 'DELETE /resource/official-category/:id',
  materialCategorySort: 'PATCH /resource/official-category',
  
}

const easyvV5 = {
// 模板
  templateImport: 'POST /templates-collection/import', 
  templateExport: 'GET /templates/:id/package',
  templateCategoryAdd: 'POST /templates-categories',
  templateCategoryDelete: 'DELETE /templates-categories/:id',
  templateCategoryUpdate: 'PATCH /templates-categories/:id',
  templateCategorySort: 'POST /templates-categories/category/sort', // 模板分类排序
  templateList: 'GET /templates',
  templateUpdate: 'PATCH /templates/:id',
  templateDelete: 'DELETE /templates',
  templateCategories: 'GET /templates-categories',
  templateSort: 'PATCH /templates/sort', // 模板排序
  
  // 大屏模板
  templateAdd: 'POST /templates',


  modalExport: 'GET /static-material/official-material/:id', // 后台管理-官方模型导出
  modalImport: 'PUT /static-material/official-material', // 后台管理-官方模型导入

  platformMaterialCategoryListGet: 'GET /resource/platform-category',
  platformMaterialCategoryCreate: 'POST /resource/platform-category',
  platformMaterialCategoryUpdate: 'PATCH /resource/platform-category/:id',
  platformMaterialCategoryDelete: 'DELETE /resource/platform-category/:id',
  platformMaterialCategorySort: 'PATCH /resource/platform-category',
  platformMaterialListGet: 'GET /resource/platform/static-material',
  platformMaterialCreate: 'POST /resource/platform/static-material',
  platformMaterialUpdate: 'PATCH /resource/platform/static-material/:id',
  // platformMaterialDelete: 'DELETE /resource/platform/static-material/:id',
  platformMaterialsDelete: 'DELETE /resource/platform/static-material',
  platformMaterialsRelease: 'PATCH /resource/platform/static-material',
  platformMaterialsUnRelease: 'PATCH /resource/platform/static-material',
  platformMaterialsSort: 'PATCH /resource/platform/static-material',
  platformMaterialExport: 'GET /resource/platform/static-material/:id',
  platformMaterialImport: 'POST /resource/platform/static-material/import',
  platformModalExport: 'GET /static-material/platform-material/:id', // 后台管理-平台模型导出
  platformModalImport: 'PUT /static-material/platform-material', // 后台管理-平台模型导入

 
 

  platformResourceListGet: 'GET /resource/platform/layer-material',
  platformResourceCreate: 'POST /resource/platform/layer-material',
  platformResourceUpdate: 'PATCH /resource/platform/layer-material/:id',
  platformResourceDelete: 'DELETE /resource/platform/layer-material/:id',

  platformResourcesDelete: 'DELETE /resource/platform/layer-material',
  platformResourcesRelease: 'PATCH /resource/platform/layer-material',
  platformResourcesUnRelease: 'PATCH /resource/platform/layer-material',
  platformResourcesSort: 'PATCH /resource/platform/layer-material',
  
  platformResourceExport: 'GET /resource/platform/layer-material/:id',
  platformResourceImport: 'POST /resource/platform/layer-material/import',

  // 大屏发布者身份 - 是否属于试用版
  screenWatermark: 'GET /screens/:id/creator',
  screensThemeStatus: 'GET /screens/:id/status', //查询主题应用状态
  resourceStaticMaterical: 'GET /resource/platform/static-material/screen',
  resourceLayerMaterical: 'GET /resource/platform/layer-material/screen',

  // 我的收藏
  resourceUserCategory: 'GET /resource/user-category',
  resourceUserStaticMatericalAdd: 'POST /resource/user/static-material',

  // 获取所有官方主题资源物料
  getAllLayerMaterial: 'GET /resource/official/layer-material',

  // 获取素材广场下资源的标签总列表(按照Type判断是哪个资源)
  getLabelsByType: 'GET /resource/labels',

  // 获取素材广场下单个资源的标签
  getLabelsById: 'GET /resource/:id/labels',

  // 查设计素材分类和主题资源分类
  platformCategory: 'GET /resource/platform-category',
  officialCategory: 'GET /resource/official-category',

  favoriteCreate: 'POST /resource/user/layer-material',

  // root 右键保存为主题资源
  layerMatericalCreate: 'POST /resource/platform/layer-material',// 独立部署 type = 官方资源
  resourceCount: 'POST /resource/platform/static-material/:id/screen', //素材计数
  favoriteAdd: 'POST /resource/user/layer-material/use', //成组添加

  // 资源中心
  resourceCategory: 'GET /resource/user-category',

  resourceGetCategory: 'GET /resource/user-category',
  resourceDeleteCategory: 'delete /resource/user-category/:id',
  resourceAddCategory: 'post /resource/user-category',
  resourceEditCategory: 'PATCH /resource/user-category/:id',
  resourceSortCategory: 'PATCH /resource/user-category',
  // 资源中心的素材库资源
  addMaterualList: 'post /resource/user/:type',
  deleteMaterualList: 'delete /resource/user/:type/:id',
  editMaterualList: 'patch /resource/user/:type/:id',
  // 存储数
  getStorage: 'GET /resource/user/static-material/favorite-check',

  // loading page
  getLoadingPage: 'GET /space-lp-infos/me',
  patchLoadingPage: 'PATCH /space-lp-infos/me',
  deleteLoadingPage: 'DELETE /space-lp-infos/me',
  getScreentLoadingPage: 'GET /space-lp-infos/screens/:screenId',

  // 资源中心导入导出
  exportMaterial: 'GET /resource/user/static-material/:id',
  exportResource: 'GET /resource/user/layer-material/:id',
  importMaterial: 'PUT /resource/user/static-material',
  importResource: 'POST /resource/layer-material/import',
  exportModal: 'GET /resource/user/static-material/:id', // 模型库导出
  importModal: 'PUT /resource/user/static-material', // 模型库导入

  // 门户管理
  addPortal: 'POST /cockpit/portal', // 创建门户
  deletePortalById: 'DELETE /cockpit/portal', // 删除门户及导航
  updatePortalById: 'PATCH /cockpit/portal', // 更新门户信息
  copyPortalById: 'PUT /cockpit/portal', // 复制门户信息
  getPortalList: 'GET /cockpit/portals', //获取门户列表
  getPortalDetailById: 'GET /cockpit/portal', //获取门户详情
  getSharedPortalById: 'GET /cockpit/shared/portal', //获取门户分享信息
  updateNavigationById: 'PATCH /cockpit/navigation', //更新导航信息
  addNavigation: 'POST /cockpit/navigation', // 创建导航
  deleteNavigationById: 'DELETE /cockpit/navigation', //删除导航

  // 数据容器产品化
  screenDataList: 'GET /data/:screenId/containers', //获取当前大屏所有数据容器
  addScreenData: 'POST /data/container', //  新增数据容器
  copyScreenData: 'PUT /data/container/:id', //  copy数据容器
  editScreenData: 'PATCH /data/container/:id', //  编辑数据容器
  deleteContainer: 'DELETE /data/container/:id', //  删除数据容器
  bindContainer: 'POST /component/:componentId/component-container-rel', // 组件绑定数据容器
  containerSort: 'PATCH /component/:componentId/component-container-rel', // 组件绑定数据容器排序
  containerSource: 'PATCH /data/container/:id/source',
  bindContainerFilter: 'POST /data/container/:id/filter', // 过滤器绑定
  deleteContainerFilter: 'DELETE /data/container/:id/filter', // 过滤器解绑
  editContainerFilter: 'PATCH /data/container/:id/filter', // 过滤器相关编辑

  // 拉取大屏
  screenGet: 'GET /screens/:screenId', //大屏编辑页和门户管理编辑页获取大屏
  screenSharedGet: 'GET /screens/shared/:screenId', //大屏发布页获取大屏
  screenInsertGet: 'GET /screens/insert/:screenId', // 驾驶舱获取大屏

  // 门户管理
  sharedGatewayScreenGet: 'GET /cockpit/portal/:portalId/screen/:screenId', //门户管理发布页获取大屏

  // 获取教程
  getAllCourse: 'GET /course',

  // 终端大屏
  screenGetByCode: 'GET /screens/mobile/:screenId',

  // 终端远程访问获取引用面板
  panelGetOfChecked: 'GET /mobile/panel/:id',

  // 获取csv数据
  getCsvDataById: 'GET /data-source/csv',

  // 获取主题配色表
  getThemes: 'GET /themes',

  // 后台管理-主题包
  deleteThemesPack: 'DELETE /themes/official',
  uploadThemesPack: 'POST /themes/upload',
  addThemeByNameAndConfig: 'POST /themes',
  updateThemeById: 'PATCH /themes',
  deleteThemeByIdList: 'DELETE /themes',
  applyThemeOfScreen: 'POST /screens/theme',

  // 独立部署-资源中心
  tenantTemplateList: 'GET /templates-tenant', // 获取列表
  tenantTemplateImport: 'PUT /template-tenant', // 上传模板
  tenantTemplateExport: 'GET /template-tenant/:id', // 导出模板
  tenantTemplateEdit: 'PATCH /template-tenant/:id', // 编辑模板（移动分组/改名）
  tenantTemplateDelete: 'DELETE /templates-tenant/:id', // 删除模板

  tenantTemplateGroup: 'GET /template-groups', // 分组列表
  tenantGroupAdd: 'POST /template-group', // 新增分组
  tenantGroupSort: 'PATCH /template-groups', // 分组排序
  tenantGroupEdit: 'PATCH /template-group/:id', // 分组编辑
  tenantGroupDelete: 'DELETE /template-group/:id', // 分组删除

  // 引用面板加密相关
  addPasswordScreenForPanel: 'PATCH /panel-screen', //配置面板加密
  panelGet: 'GET /panel/:id',
  sharedPanelGet: 'GET /panel/shared/:id',


  // 模板
  recommendTemplates: 'GET /templates',
  templateAddToMy: 'POST /templates-collection/:templateId',
  myTemplates: 'GET /templates-collection',
  deleteTemplate: 'DELETE /templates-collection/cancel/:id',
  editTemplate: 'PATCH /templates-collection/:id',
  getTemplateGroup: 'GET /templates-collection/groups',
  addTemplateGroup: 'POST /templates-collection/groups',
  sortTemplateGroup: 'PATCH /templates-collection/groups/sort',
  deleteTemplateGroup: 'DELETE /templates-collection/groups/:id',
  editTemplateGroup: 'PATCH /templates-collection/groups/:id',
  exportTemplate: 'GET /templates/:id/package',
 // 资源中心导入模板
 importTemplate: 'POST /templates-collection/import',
};


const hpv1 = {
  // 公告
  notifications: 'GET /notifications',
};

const uacV1 = {
  usersMePermissions: 'GET /users/me/permissions',
  userInfo: 'GET /users/me',
  updateVersionByName: 'PATCH /temp/:id/application',
};

const toolV1 = {
  packageTransform: '/package/transform',
};

const logV1 = {
  easyvLog: 'POST ',
};

const fsV1 = {
  filesUpload: '/static',
};

const apiMap = {};

Object.entries(easyvV3).map(([key, value]) => {
  apiMap[key] = `${PRE_EASYV_V3}${value}`;
});

Object.entries(easyvV4).map(([key, value]) => {
  const [method, path] = value.split(' ');
  apiMap[key] = `${method} ${PRE_EASYV_V4}${path}`;
});

Object.entries(easyvV5).map(([key, value]) => {
  const [method, path] = value.split(' ');
  apiMap[key] = `${method} ${PRE_EASYV_V5}${path}`;
});

Object.entries(salesV1).map(([key, value]) => {
  const [method, path] = value.split(' ');
  apiMap[key] = `${method} ${PRE_SALES_V1}${path}`;
});

Object.entries(omsV1).map(([key, value]) => {
  const [method, path] = value.split(' ');
  apiMap[key] = `${method} ${PRE_OMS_V1}${path}`;
});

Object.entries(toolV1).map(([key, value]) => {
  apiMap[key] = `${PRE_TOOL_V1}${value}`;
});


Object.entries(hpv1).map(([key, value]) => {
  const [method, path] = value.split(' ');

  apiMap[key] = `${method} ${PRE_HP_V1}${path}`;
});

Object.entries(uacV1).map(([key, value]) => {
  const [method, path] = value.split(' ');

  apiMap[key] = `${method} ${PRE_UAC_V1}${path}`;
});

Object.entries(logV1).map(([key, value]) => {
  const [method, path] = value.split(' ');
  apiMap[key] = `${method} ${PRE_LOG_V1}${path}`;
});

Object.entries(fsV1).map(([key, value]) => {
  apiMap[key] = `${PRE_FS_V1}${value}`;
});


export const api = apiMap;

export const sourceOptions = [
  { name: 'CSV文件', value: 'csv' },
  { name: 'DTable API', value: 'dtableapi' },
  { name: 'API接口', value: 'api' },
  { name: 'MySQL数据库', value: 'mysql' },
  { name: 'Oracle数据库', value: 'oracle' },
  { name: 'SQL Server数据库', value: 'mssql' },
  { name: '达梦数据库', value: 'damengdb' },
  { name: 'PostgreSQL数据库', value: 'postgresql' },
  { name: 'DB2数据库', value: 'db2' },
  // { name: 'WebSocket', value: 'ws' },
  // { name: 'MQTT', value: 'mqtt' },
  { name: '阿里云API网关', value: 'apiGateway' },
  { name: '数栈 API', value: 'dtInsight' },
  { name: 'ClickHouse数据库', value: 'clickhouse' }
];

// 个人版数据容器只有DTable
export const dtableOptions = [{ name: 'DTable API', value: 'dtableapi' }];



export const adminPanelTypeOptions = [
  {
    label: '个人版',
    value: 4,
  },
  {
    label: '高级版',
    value: 2,
  },
  {
    label: '尊享版',
    value: 3,
  },
];

export const adminPanelAuthorityConfig = [
  {
    label: '全版本',
    value: 4, //个人版
  },
  {
    label: '高级及以上',
    value: 2,
  },
];