Files
cpms_operation_platform/src/api/login/index.ts
T

13 lines
317 B
TypeScript
Raw Normal View History

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
};