Merged PR 612: /files/template/download-locationの対応
## 概要 [Task3278: /files/template/download-locationの対応](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/3278) - クエリパラメータが不正な場合にバリデータで処理されるようにしました。 ## レビューポイント - 適用したバリデータは適切でしょうか? ## UIの変更 - なし ## 動作確認状況 - ローカルで確認
This commit is contained in:
parent
f1583cf783
commit
bce9866ba3
@ -1,4 +1,6 @@
|
||||
import { ApiProperty } from '@nestjs/swagger';
|
||||
import { Type } from 'class-transformer';
|
||||
import { IsInt, Min } from 'class-validator';
|
||||
|
||||
export class AudioUploadLocationRequest {}
|
||||
|
||||
@ -23,6 +25,9 @@ export class AudioDownloadLocationResponse {
|
||||
|
||||
export class TemplateDownloadLocationRequest {
|
||||
@ApiProperty({ description: '文字起こし対象の音声ファイルID' })
|
||||
@Type(() => Number)
|
||||
@Min(0)
|
||||
@IsInt()
|
||||
audioFileId: number;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user