import http from '@/http/api.js'

/**
 * 登录
 * @param {*} params
 * @returns
 */
export const login = params => {
	return http.request({
		url: '/api/blade-auth/oauth/token',
		method: 'POST',
		data: params,
		header: {
			'Content-Type': 'application/x-www-form-urlencoded'
		}
	});
};