-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from boostcampwm-2024/back/main
[BE] 브랜치 병합
- Loading branch information
Showing
9 changed files
with
218 additions
and
154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class NewsItemDataDto { | ||
@ApiProperty({ description: '뉴스 기사 제목' }) | ||
title: string; | ||
|
||
@ApiProperty({ description: '원문 URL' }) | ||
originallink: string; | ||
|
||
@ApiProperty({ description: '뉴스 기사의 내용을 요약한 패시지 정보' }) | ||
description: string; | ||
|
||
@ApiProperty({ description: '기사 원문이 제공된 시간' }) | ||
pubDate: Date; | ||
|
||
@ApiProperty({ description: '검색 키워드' }) | ||
query: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,10 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
import { NewsItemDataDto } from './news-item-data.dto'; | ||
|
||
export class NewsResponseDto { | ||
@ApiProperty({ description: '뉴스 기사 제목' }) | ||
title: string; | ||
@ApiProperty({ description: '마지막 업데이트 시간' }) | ||
updatedAt: Date; | ||
|
||
@ApiProperty({ description: '원문 URL' }) | ||
originallink: string; | ||
|
||
@ApiProperty({ description: '뉴스 기사의 내용을 요약한 패시지 정보' }) | ||
description: string; | ||
|
||
@ApiProperty({ description: '기사 원문이 제공된 시간' }) | ||
pubDate: string; | ||
|
||
@ApiProperty({ description: '검색 키워드' }) | ||
query: string; | ||
@ApiProperty({ description: '뉴스 목록', type: [NewsItemDataDto] }) | ||
news: NewsItemDataDto[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.