import request from '@/utils/request' declare const window: any // export function getTenantTotal(data = {}) { // return request({ // url: `${window.getVersionTypeApiUrl('apidesignURL')}/baseDynamicApiController/one/tenant-total`, // method: 'post', // data // }) // } // 获取企业微信配置信息接口 export function wxLoginInfo() { let host = location.protocol + '//' + window.location.host return request({ url: `${window.getVersionTypeApiUrl( 'thirdURL' )}/auth-wx-login/wxcp-info-byDomain?tenantDomain=${host}`, method: 'get', }) } // 微信扫码登录地址获取接口 export function getWxLoginUrl() { let host = location.protocol + '//' + window.location.host return request({ url: `${window.getVersionTypeApiUrl( 'thirdURL' )}/auth-wx-login/login-url?tenantDomain=${host}`, method: 'get', }) } // 企业微信获取token接口 export function authWxLogin(code, state) { return request({ url: `${window.getVersionTypeApiUrl( 'thirdURL' )}/auth-wx-login/callback?code=${code}&state=${state}`, method: 'get', }) }