52 lines
1.5 KiB
TypeScript
52 lines
1.5 KiB
TypeScript
import {
|
|
Get,
|
|
Param,
|
|
Controller,
|
|
} from '@nestjs/common';
|
|
|
|
import { HomePageService } from './home-page.service';
|
|
import { ApiTags } from '@nestjs/swagger';
|
|
|
|
import {
|
|
EMAIL_DTO,
|
|
GetCarnetDetailsbyCarnetStatusDTO,
|
|
SPID_DTO,
|
|
USERID_DTO
|
|
} from 'src/dto/property.dto';
|
|
|
|
@ApiTags('HomePage - Oracle')
|
|
@Controller('oracle')
|
|
export class HomePageController {
|
|
constructor(private readonly homePageService: HomePageService) { }
|
|
|
|
|
|
@Get('GetHomePageData/:P_SPID')
|
|
GetHomePageData(@Param() params: SPID_DTO) {
|
|
return this.homePageService.GetHomePageData(params);
|
|
}
|
|
|
|
@Get('GetCarnetSummaryData/:P_USERID')
|
|
GetCarnetSummaryData(@Param() params: USERID_DTO) {
|
|
return this.homePageService.GetCarnetSummaryData(params);
|
|
}
|
|
|
|
@Get('GetCarnetDetailsbyCarnetStatus/:P_SPID/:P_USERID/:P_CARNETSTATUS')
|
|
GetCarnetDetailsbyCarnetStatus(@Param() params: GetCarnetDetailsbyCarnetStatusDTO) {
|
|
return this.homePageService.GetCarnetDetailsbyCarnetStatus(params);
|
|
}
|
|
|
|
// NOTE : this has been moved to carent-application module
|
|
|
|
// @Post('/oracle/SaveCarnetApplication')
|
|
// SaveCarnetApplication(@Body() body: SaveCarnetApplicationDTO) {
|
|
// return this.homePageService.SaveCarnetApplication(body);
|
|
// }
|
|
|
|
// NOTE : this has been moved to carent-application module
|
|
|
|
// @Post('/oracle/TransmitApplicationtoProcess')
|
|
// TransmitApplicationtoProcess(@Body() body: TransmitApplicationtoProcessDTO) {
|
|
// return this.homePageService.TransmitApplicationtoProcess(body);
|
|
// }
|
|
}
|