import request from '@/utils/request' declare const window: any // 获取钉钉配置信息接口 export function ddLoginInfo() { let host = location.protocol + '//' + window.location.host // host = "http://gushen.devcenter.sieiot.com" return request({ url: `${window.getVersionTypeApiUrl( 'thirdURL' )}/auth-dingtalk-login/dt-info-byDomain?tenantDomain=${host}`, method: 'get', }) } // 钉钉扫码登录信息获取接口 export function dingdingScanLogin(code, corpId) { return request({ url: `${window.getVersionTypeApiUrl( 'thirdURL' )}/auth-dingtalk-login/scanCode/login?code=${code}&corpId=${corpId}`, method: 'get', }) } // 钉钉平台登录信息获取接口 export function dingdingLogin(code, corpId) { return request({ url: `${window.getVersionTypeApiUrl( 'thirdURL' )}/auth-dingtalk-login/login?code=${code}&corpId=${corpId}`, method: 'get', }) } // 钉钉平台登录信息获取接口 export function authDingdingLogin(code, corpId) { return request({ url: `${window.getVersionTypeApiUrl( 'thirdURL' )}/auth-dingtalk-login/sso/login?code=${code}&corpId=${corpId}`, method: 'get', }) }