export type Agreements={
	title: string;
	url: string;
}

export type AppInfo ={
  name: string;
  version: string;
  logo: string;
  site_url: string;
  agreements: Agreements[];
}

export type GlobalConfig= {
  baseUrl: string;
  appInfo: AppInfo;
  host: string;
  tokenURL: string;
  downloadURL: string;
  uploadURL: string;
  getImgURL: string;
}

export const globalConfig  = {
  // baseUrl: 'https://vue.ruoyi.vip/prod-api',
  baseUrl: 'http://localhost:8080',
  // 应用信息
  appInfo: {
    // 应用名称
    name: "ruoyi-app",
    // 应用版本
    version: "1.1.0",
    // 应用logo
    logo: "/static/newLogo.png",
    // 官方网站
    site_url: "http://ruoyi.vip",
    // 政策协议
    agreements: [{
        title: "隐私政策",
        url: "https://ruoyi.vip/protocol.html"
      },
      {
        title: "用户服务协议",
        url: "https://ruoyi.vip/protocol.html"
      }
    ]
  },
  // host: "http://192.168.43.62:4523/m1/7190626-6915798-default",
  host: "http://10.122.15.8",
  tokenURL: '/paas/RestService/d800.paas.app.LoginImpl/caLogin?username=',
  downloadURL: '/qm/RestService/d800.qm.QmImpl/loadQmImagetask?prodcode=',
  getImgURL: 'http://10.122.15.8/qm/Rest/download?fileid=',
  // getImgURL: 'http://192.168.43.62:8080/qm/Rest/download?fileid=',
  uploadURL: 'http://10.122.15.8/qm/Rest/upload'
  // uploadURL: 'http://192.168.43.62:8080/qm/Rest/upload'
} as GlobalConfig;