2023-02-16 01:18:55 +08:00
|
|
|
import '@nestjs/mapped-types'
|
2023-02-16 10:40:03 +08:00
|
|
|
import { ApiProperty } from '@nestjs/swagger'
|
2023-02-16 01:18:55 +08:00
|
|
|
|
|
|
|
export class Token {
|
|
|
|
@ApiProperty()
|
|
|
|
accessToken: string
|
|
|
|
@ApiProperty()
|
|
|
|
refreshToken: string
|
|
|
|
}
|
2023-02-17 11:49:16 +08:00
|
|
|
|
|
|
|
export class TokenPayload {
|
|
|
|
userId: string
|
|
|
|
}
|