service.ts 402 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
import request from 'umi-request';

export async function queryCurrent() {
  return request('/api/BLOCK_NAME/currentUser');
}

export async function queryProvince() {
  return request('/api/BLOCK_NAME/province');
}

陈帅's avatar
陈帅 committed
11
export async function queryCity(province: string) {
12 13 14 15 16 17
  return request(`/api/BLOCK_NAME/city/${province}`);
}

export async function query() {
  return request('/api/BLOCK_NAME/users');
}