-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(BE): 의과 약품 히스토리 조회 API 구현 (#72)
* feat: deletedAt 컬럼 select 옵션 수정 * feat: 의과 약품 히스토리 조회 DTO 추가 * feat: 의과 약품 히스토리 조회 API 구현
- Loading branch information
Showing
5 changed files
with
124 additions
and
2 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
22 changes: 22 additions & 0 deletions
22
backend/src/m-prescriptions/dto/paginate-m-prescription-history.dto.ts
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,22 @@ | ||
import { ApiPropertyOptional, OmitType } from '@nestjs/swagger'; | ||
import { IsOptional, IsString } from 'class-validator'; | ||
import { BasePaginationDto } from 'src/common/dto/base-pagination.dto'; | ||
|
||
export class PaginateMPrescriptionHistoryDto extends OmitType( | ||
BasePaginationDto, | ||
['page'], | ||
) { | ||
@ApiPropertyOptional({ | ||
description: '약품명', | ||
}) | ||
@IsString() | ||
@IsOptional() | ||
name: string; | ||
|
||
@ApiPropertyOptional({ | ||
description: '성분명/함량', | ||
}) | ||
@IsString() | ||
@IsOptional() | ||
ingredient: 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
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