add : reseller

This commit is contained in:
2026-04-13 11:57:13 +03:30
parent fccea733e3
commit bb42b393c4
13 changed files with 152 additions and 21 deletions
+4 -4
View File
@@ -34,11 +34,11 @@ export class AuthController {
}
@ApiOperation({ summary: "request to login with otp" })
@ApiOperation({ summary: "request to login with otp as reseller" })
@HttpCode(HttpStatus.OK)
@Post("otp/send/reseller")
sendOtpReseller(@Body() requestOtpDto: RequestOtpDto) {
return this.authService.requestLoginOtpAgentAndReseller(requestOtpDto);
return this.authService.requestLoginOtpReseller(requestOtpDto);
}
@ApiOperation({ summary: "verify otp for login" })
@@ -79,9 +79,9 @@ export class AuthController {
@ApiOperation({ summary: "verify otp for login" })
@HttpCode(HttpStatus.OK)
@Post("otp/verify/agent")
@Post("otp/verify/reseller")
resellerVerifyOtp(@Body() verifyOtpDto: VerifyOtpDto) {
return this.authService.requestLoginOtpAgentAndReseller(verifyOtpDto);
return this.authService.resellerVerifyLoginOtp(verifyOtpDto);
}
@AuthGuards()