const request = require('@/utils/request') // 导入请求方法
const METHOD = request.METHOD
//跨域代理前缀
// const API_PROXY_PREFIX='/api'
// const BASE_URL = process.env.NODE_ENV === 'production' ? process.env.VUE_APP_API_BASE_URL : API_PROXY_PREFIX
const BASE_URL = process.env.VUE_APP_API_BASE_URL // 获取环境变量VUE_APP_API_BASE_URL
const USER_MODEL = process.env.VUE_APP_USER_MODEL
module.exports = {
  BASE_URL,
  USER_MODEL:USER_MODEL,
  PROJECT: {
    url:`${BASE_URL}/${USER_MODEL}/v1/project`, 
    url2:`${BASE_URL}/${USER_MODEL}/v1/project`, 
  
  method:METHOD.POST
}, // 获取项目信息
  LOGIN: {url:`${BASE_URL}/${USER_MODEL}/v1/login`, method:METHOD.POST}, // 登录
  SWITCHCOMPANY: {url:`${BASE_URL}/${USER_MODEL}/v1/switch/company`, method:METHOD.POST}, // 登录
  COMPANYLIST: {url:`${BASE_URL}/${USER_MODEL}/v1/user/company/list`, method:METHOD.POST}, // 登录
  ROUTERS: {url:`${BASE_URL}/${USER_MODEL}/v1/routers`, method:METHOD.POST}, // 获取路由配置
  USERINFO: {url:`${BASE_URL}/${USER_MODEL}/v1/userinfo`, method:METHOD.POST}, // 获取用户信息
  COMPANY: {url:`${BASE_URL}/${USER_MODEL}/v1/company`, method:METHOD.POST}, // 获取公司信息
  PERMISSION: {url:`${BASE_URL}/${USER_MODEL}/v1/permission`, method:METHOD.POST}, // 获取权限配置
  SETTINGS: {url:`${BASE_URL}/${USER_MODEL}/v1/settings`, method:METHOD.POST}, // 获取用户设置
}
