import {
	httpUrlFormat,
	ajaxCarryAuthorization,ajaxSync
} from '@/utils/httpUtils.js'


import { ApiVersion,AppVersion } from '@/config/baseConfig.js'

const headerVersion = {
	'API-Version': ApiVersion(),
	'APP-Version':AppVersion()
}


const _flag = 'apiBaseUrl' // 请求的api空间

const apiUrl = {
	'index': httpUrlFormat('/index', _flag),
}

export function index(data) {
	return ajaxSync({
		header: headerVersion,
		url: apiUrl.index,
		method: 'GET',
		data: data
	})
}

