import request from '@/utils/request';

// 系统字典
export async function comboboxlist(data) {
  return request({
    path: '/system/combobox/data/list',
    data,
    type: 'get',
  });
}

// 区域
export async function region(data) {
  return request({
    path: '/system/administrative/region',
    data,
    type: 'get',
  });
}

// 区域
export async function industrylist(data) {
  return request({
    path: '/system/combobox/enterprise/industry/list',
    data,
    type: 'get',
  });
}

export async function industrytype(data) {
  return request({
    path: '/system/combobox/enterprise/industry/type',
    data,
    type: 'get',
  });
}

export async function courselist(data) {
  return request({
    path: '/system/combobox/course/list',
    data,
    type: 'get',
  });
}

export async function accountlist(data) {
  return request({
    path: '/permissions/account/list',
    data,
    type: 'get',
  });
}

// 上传
export async function filesupload(data) {
  return request({
    baseURL: `${import.meta.env.VITE_APP_WEB_API_URL}/ssp/v2/system/files/upload`,
    path: '/system/files/upload',
    data,
    type: 'post',
  });
}
