mirror of
https://github.com/labring/FastGPT.git
synced 2026-05-05 01:02:59 +08:00
bd966d479f
* fix: login secret * lock * env template * fix: ts * fix: ts * fix: ts
14 lines
658 B
TypeScript
14 lines
658 B
TypeScript
import { z } from 'zod';
|
|
import { TrackRegisterParamsSchema } from '../../../../../support/marketing/type';
|
|
import { LanguageSchema } from '../../../../../common/i18n/type';
|
|
|
|
// ===== Register by email or phone =====
|
|
export const AccountRegisterBodySchema = TrackRegisterParamsSchema.extend({
|
|
username: z.string().meta({ description: '用户名(邮箱或手机号)' }),
|
|
code: z.string().meta({ description: '验证码' }),
|
|
password: z.string().meta({ description: '密码(已加密)' }),
|
|
language: LanguageSchema.optional().meta({ description: '语言' })
|
|
});
|
|
|
|
export type AccountRegisterBodyType = z.infer<typeof AccountRegisterBodySchema>;
|