first commit
This commit is contained in:
12
src/services/controller/AuthController.ts
Normal file
12
src/services/controller/AuthController.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { API_PATH_LOGIN } from '@/constants';
|
||||
import { request } from '@umijs/max';
|
||||
|
||||
export async function login(body: API.LoginRequestBody) {
|
||||
// console.log('Login request body:', body);
|
||||
|
||||
return request<API.LoginResponse>(API_PATH_LOGIN, {
|
||||
method: 'POST',
|
||||
data: body,
|
||||
skipErrorHandler: true,
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user