tyt-api-nest/src/auth/dto/login-official-account.dto.ts

10 lines
245 B
TypeScript

import { IsString, MaxLength, MinLength } from 'class-validator';
export class LoginOfficialAccountDto {
// 服务号 openId 由前端/网关在登录态中传入。
@IsString()
@MinLength(6)
@MaxLength(128)
officialOpenId: string;
}