You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
579 B
20 lines
579 B
import { request } from '@umijs/max';
|
|
import type { CurrentUser, GeographicItemType } from './data';
|
|
|
|
export async function queryCurrent(): Promise<{ data: CurrentUser }> {
|
|
return request('/api/accountSettingCurrentUser');
|
|
}
|
|
|
|
export async function queryProvince(): Promise<{ data: GeographicItemType[] }> {
|
|
return request('/api/geographic/province');
|
|
}
|
|
|
|
export async function queryCity(
|
|
province: string,
|
|
): Promise<{ data: GeographicItemType[] }> {
|
|
return request(`/api/geographic/city/${province}`);
|
|
}
|
|
|
|
export async function query() {
|
|
return request('/api/users');
|
|
}
|
|
|