파일 정리
This commit is contained in:
@@ -1,17 +1,6 @@
|
||||
import { Controller, Get, Post, Body, Param, Query } from '@nestjs/common';
|
||||
import { GenomeService } from './genome.service';
|
||||
|
||||
export interface CategoryAverageDto {
|
||||
category: string;
|
||||
avgEbv: number;
|
||||
count: number;
|
||||
}
|
||||
|
||||
export interface ComparisonAveragesDto {
|
||||
nationwide: CategoryAverageDto[];
|
||||
region: CategoryAverageDto[];
|
||||
farm: CategoryAverageDto[];
|
||||
}
|
||||
import { ComparisonAveragesDto } from './dto/comparison-averages.dto';
|
||||
|
||||
@Controller('genome')
|
||||
export class GenomeController {
|
||||
@@ -100,6 +89,16 @@ export class GenomeController {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* GET /genome/yearly-ebv-stats/:farmNo
|
||||
* 연도별 EBV 통계 (개체상세 > 유전체 통합비교용)
|
||||
* @param farmNo - 농장 번호
|
||||
*/
|
||||
@Get('yearly-ebv-stats/:farmNo')
|
||||
getYearlyEbvStats(@Param('farmNo') farmNo: string) {
|
||||
return this.genomeService.getYearlyEbvStats(+farmNo);
|
||||
}
|
||||
|
||||
/**
|
||||
* GET /genome/yearly-trait-trend/:farmNo
|
||||
* 연도별 유전능력 추이 (형질별/카테고리별)
|
||||
|
||||
Reference in New Issue
Block a user