2026-08-03 19:12:33 +08:00
|
|
|
import { post } from '@/utils/request';
|
2026-08-05 16:02:01 +08:00
|
|
|
import type { LoginResult } from './types';
|
|
|
|
|
|
|
|
|
|
export type { LoginResult } from './types';
|
2026-08-03 19:12:33 +08:00
|
|
|
|
|
|
|
|
export const login = (params: { phone: string; password: string }) => {
|
2026-08-05 16:02:01 +08:00
|
|
|
return post(`/op/login`, params) as Promise<{
|
|
|
|
|
code: number;
|
|
|
|
|
msg: string;
|
|
|
|
|
data: LoginResult;
|
|
|
|
|
}>;
|
2026-08-03 19:12:33 +08:00
|
|
|
};
|