forked from Yara724/api
Initial commit after migration to gitea
This commit is contained in:
44
src/auth/dto/user/login.dto.ts
Normal file
44
src/auth/dto/user/login.dto.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import { ApiProperty } from "@nestjs/swagger";
|
||||
import { UserModel } from "src/users/entities/schema/user.schema";
|
||||
|
||||
export class UserLoginDto {
|
||||
@ApiProperty({
|
||||
example: "09226187419",
|
||||
type: "string",
|
||||
description: "User login dto",
|
||||
})
|
||||
mobile: string;
|
||||
}
|
||||
|
||||
export class LoginDtoRs extends UserModel {
|
||||
message: string;
|
||||
@ApiProperty({
|
||||
example: "09226187419",
|
||||
type: "string",
|
||||
description: "User login dto",
|
||||
})
|
||||
tokens: { token: string; rfToken: string };
|
||||
|
||||
@ApiProperty({
|
||||
example: "09226187419",
|
||||
type: "string",
|
||||
description: "User login dto",
|
||||
})
|
||||
userId: string;
|
||||
|
||||
@ApiProperty({
|
||||
example: "09226187419",
|
||||
type: "string",
|
||||
description: "User login dto",
|
||||
})
|
||||
firstName: string;
|
||||
|
||||
lastName: string;
|
||||
username: string;
|
||||
mobile: string;
|
||||
nationalCode: string;
|
||||
constructor(loginData) {
|
||||
super();
|
||||
this.mobile = loginData.mobile;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user