const APIV1 = '/api/v1'
const APIV2 = '/api/v2'
const APIV3 = 'http://119.130.113.245:8004'
const APIV4 = 'http://119.130.113.245:8005'

const APIV3Auth = 'https://mem.360lj.com/zuul/oauth2'
const WXAPIV5= 'https://mem.360lj.com/zuul/qiyewechat'
const WXMpAPI= 'https://mem.360lj.com/zuul/mpwechat'
const staticMpAPI = 'https://mem.360lj.com/zuul/mpwechat'
module.exports =  {
  name: '亮健营销平台',
  prefix: 'bird',
  footerText: 'bird admin  © 2018 360lj.com',
  logo: '/logo.svg',
  iconFontCSS: '/iconfont.css',
  iconFontJS: '/iconfont.js',
  CORS: [
    'http://mem.360lj.com:7111',
    'http://119.130.113.245:8004',
    'http://119.130.113.245:8005',
    'http://119.130.113.245:7001',
    'http://119.130.113.245:8030',
    'http://mem.360lj.com:13000',
    'http://mem.360lj.com:7000',
    'http://mem.360lj.com:7001',
    'https://mem.360lj.com/zuul',
  ],
  //YQL: ['http://localhost:57251'],
  openPages: ['/login','/'],
  apiPrefix: '/api/v1',
  webApiPrefix:APIV3,
  authApiPrefix: APIV3Auth,
  APIV1,
  APIV2,
  APIV3,
  APIV3Auth,
  APIV4,
  WXAPIV5,
  WXMpAPI,
  staticMpAPI,
  ClientId:'f3ed0d90-3fc8-4eba-b83c-a0cfe54c174d',
  ClientSecret:'78e238b4-c199-49ad-b619-69b6a78959d8',
  ClientIdCms:'f2e2a47c-76e5-4a45-928e-368b1c64695e',
  ClientSecretCms:'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVHVcChDl9LptUSFCtrqj39rLCq5id/04BfHBWTqgSoVQzYo2ot/rBV0XWaAZExK/DOKHXmLbxlcN5pgU7X6DvGnmu2zp5KhxtxO11bLWhgsik7Dh5x4N6Pkt6xGKAruxoFmCOde5/20Omaa5LlEH2jit7Fc6EK0tbfu4JnVaEGwIDAQAB',
  
  ApplicationKey:'wechatcp',
  grant_type:'password',
  grant_type_refesh:'refresh_token',
  color:{
    success:'#52c41a',
    warn:'#E6A23C',
    error:'#ff4d4f'
  },
  api: {
    // userLogin: `${APIV3}/web/login/index`,
    userLogin: `${APIV3Auth}/ums/oauth2/accessToken`,
    // userLogout: `${APIV3}/web/login/logout`,
    userLogout: `${APIV3Auth}/web/login/logout`,
    //menus: `${APIV1}/menus`,
    // menus: `${APIV3}/web/auth/menus`,
    menus: `${APIV3Auth}/ums/oauth2/list/permission`,//?types=1 两种菜单类型 顶部菜单和左侧菜单
    getDic:`${APIV1}/getdic?key=`,

    upload:`${APIV3}/web/upload/uploadprofile`,
    //getFileName:`/file/getName?url=`,
    getFileName:`${APIV3}/`,
    // getOperationToken:`${APIV3}/web/login/getOperationToken`,
    getOperationToken: `${APIV3Auth}/ums/oauth2/accessToken`,
    // permissions:`${APIV3}/web/auth/permissions`
    permissions:`${APIV3Auth}/ums/oauth2/list/permission?types=2`,
  },
  APIV4, 
}