service.ts 337 Bytes
Newer Older
duanledexianxianxian's avatar
duanledexianxianxian committed
1
import { get } from '@/utils/request';
duanledexianxianxian's avatar
duanledexianxianxian committed
2 3 4
import { FromDataType } from './index';

export async function fakeAccountLogin(params: FromDataType) {
duanledexianxianxian's avatar
duanledexianxianxian committed
5
  return get('/api/login/account', {
duanledexianxianxian's avatar
duanledexianxianxian committed
6 7 8 9 10 11
    method: 'POST',
    data: params,
  });
}

export async function getFakeCaptcha(mobile: string) {
duanledexianxianxian's avatar
duanledexianxianxian committed
12
  return get(`/api/login/captcha?mobile=${mobile}`);
duanledexianxianxian's avatar
duanledexianxianxian committed
13
}