src/partnership/partnership.controller.ts
/partnership
Methods |
| calculatePartnershipV1 | ||||||
calculatePartnershipV1(body: PartnershipBodyArray)
|
||||||
Decorators :
@Post()
|
||||||
|
Defined in src/partnership/partnership.controller.ts:21
|
||||||
|
Parameters :
Returns :
any
|
import { Body, Controller, Get, Query } from '@nestjs/common';
import { ApiBearerAuth, ApiResponse, ApiTags } from '@nestjs/swagger';
import { PartnershipService } from './partnership.service';
import {
PartnershipBodyArray,
PartnershipResultDto,
} from './dto/partnership.dto';
import { Post } from '@nestjs/common/decorators';
@ApiTags('Partnership')
@ApiBearerAuth('token')
@Controller('/partnership')
export class PartnershipController {
constructor(private readonly partnershipService: PartnershipService) {}
@Post()
@ApiResponse({
type: PartnershipResultDto,
description: 'returns partnership list of manufacturers and distributors',
})
calculatePartnershipV1(@Body() body: PartnershipBodyArray) {
return this.partnershipService.calculatePartnership(body);
}
}