import {
	request
} from '@/untils/AxiosUtils.js';

export const forgetPW = (mobile, password, code) => request({
	url: '/api/jobslink-api/user/front/account/password',
	method: 'post',
	headers: {
		'SCaptcha-Key': mobile,
		'SCaptcha-Code': code,
	},
	params: {
		mobile,
		password,
	}
});

export const accountsendValidate = (mobile, key, code) => request({
	url: '/api/jobslink-api/user/front/account/password/sendValidate',
	method: 'get',
	headers: {
		'Captcha-Key': key,
		'Captcha-Code': code,
	},
	params: {
		mobile
	}
});

export const getCaptcha = () => request({
	url: '/api/jobslink-api/user/front/account/oauth/captcha',
	method: 'get'
});

export const validateCode = (mobile, code) => request({
	url: '/api/jobslink-api/user/front/account/validate/code',
	method: 'get',
	headers: {
		'SCaptcha-Key': mobile,
		'SCaptcha-Code': code,
	}
});
