service.ts 351 Bytes
Newer Older
1
import request from 'umi-request';
陈帅's avatar
陈帅 committed
2
import { FromDataType } from './index';
3

陈帅's avatar
陈帅 committed
4
export async function fakeAccountLogin(params: FromDataType) {
5 6 7 8 9 10
  return request('/api/BLOCK_NAME/account', {
    method: 'POST',
    data: params,
  });
}

陈帅's avatar
陈帅 committed
11
export async function getFakeCaptcha(mobile: string) {
12 13
  return request(`/api/BLOCK_NAME/captcha?mobile=${mobile}`);
}