mirror of https://github.com/fantasticit/think.git
12 lines
313 B
TypeScript
12 lines
313 B
TypeScript
import type { IPagination, IUser } from '@think/domains';
|
|
|
|
import { HttpClient } from './http-client';
|
|
|
|
export const register = (data: Partial<IUser>): Promise<IUser> => {
|
|
return HttpClient.post('/user/register', data);
|
|
};
|
|
|
|
export const getUsers = (): Promise<IUser[]> => {
|
|
return HttpClient.get('/user');
|
|
};
|