17 lines
458 B
TypeScript
17 lines
458 B
TypeScript
/**
|
|
* 登录请求
|
|
* 原始 Dart: LoginRequest (lib/data/models/auth/auth_request.dart)
|
|
*/
|
|
import { z } from "zod";
|
|
|
|
export const LoginRequestSchema = z.object({
|
|
email: z.string().default(""),
|
|
username: z.string().default(""),
|
|
password: z.string(),
|
|
platform: z.string(),
|
|
guestId: z.string().default(""),
|
|
});
|
|
|
|
export type LoginRequestInput = z.input<typeof LoginRequestSchema>;
|
|
export type LoginRequestData = z.output<typeof LoginRequestSchema>;
|