add : reseller

This commit is contained in:
2026-04-12 15:04:34 +03:30
parent 63f83f5a68
commit 84ed654739
14 changed files with 253 additions and 7 deletions
+15
View File
@@ -33,6 +33,14 @@ export class AuthController {
return this.authService.requestLoginOtp(requestOtpDto);
}
@ApiOperation({ summary: "request to login with otp" })
@HttpCode(HttpStatus.OK)
@Post("otp/send/reseller")
sendOtpReseller(@Body() requestOtpDto: RequestOtpDto) {
return this.authService.requestLoginOtpAgentAndReseller(requestOtpDto);
}
@ApiOperation({ summary: "verify otp for login" })
@HttpCode(HttpStatus.OK)
@Post("otp/verify")
@@ -69,6 +77,13 @@ export class AuthController {
return this.authService.adminVerifyLoginOtp(verifyOtpDto);
}
@ApiOperation({ summary: "verify otp for login" })
@HttpCode(HttpStatus.OK)
@Post("otp/verify/agent")
resellerVerifyOtp(@Body() verifyOtpDto: VerifyOtpDto) {
return this.authService.requestLoginOtpAgentAndReseller(verifyOtpDto);
}
@AuthGuards()
@ApiOperation({ summary: "Update user password" })
@HttpCode(HttpStatus.OK)