(
@Body() loginParams: LoginParamsDto,
@Session() session: SessionTypes,
@Req() req: Request,
)
| 62 | @ApiOkResponse({ type: LoginResponseDto }) |
| 63 | @ApiOperation({ summary: '用户登录' }) |
| 64 | async login( |
| 65 | @Body() loginParams: LoginParamsDto, |
| 66 | @Session() session: SessionTypes, |
| 67 | @Req() req: Request, |
| 68 | ) { |
| 69 | const response = await this.authService.loginSingToken( |
| 70 | loginParams, |
| 71 | getRealIp(req), |
| 72 | session, |
| 73 | ); |
| 74 | return response; |
| 75 | } |
| 76 | |
| 77 | /** |
| 78 | * @description: 用户退出登录 |
nothing calls this directly
no test coverage detected