Merged PR 95: (最最最優先)fileSizeをstringからnumberに修正

## 概要
[Task1728: (最最最優先)fileSizeをstringからnumberに修正](https://paruru.nds-tyo.co.jp:8443/tfs/ReciproCollection/fa4924a4-d079-4fab-9fb5-a9a11eb205f0/_workitems/edit/1728)

- 外部連携APIのパラメータについてファイルサイズをnumberとするように修正しました。
- 外部連携API、音声ファイルアップロード完了APIに401認証エラーを追加しました。

## レビューポイント
- 修正内容は適切か

## UIの変更
無し

## 動作確認状況
- ローカルSwaggerで確認
This commit is contained in:
makabe.t 2023-05-10 07:25:59 +00:00
parent 8ccc2a82e8
commit a740ec3c36
4 changed files with 23 additions and 7 deletions

View File

@ -453,6 +453,16 @@
}
}
},
"401": {
"description": "認証エラー",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ErrorResponse"
}
}
}
},
"500": {
"description": "想定外のサーバーエラー",
"content": {
@ -1578,7 +1588,8 @@
"description": "音声ファイルのアップロード日時yyyy-mm-ddThh:mm:ss.sss"
},
"fileSize": {
"type": "string"
"type": "number",
"description": "音声ファイルのファイルサイズByte"
},
"priority": {
"type": "string",
@ -1729,8 +1740,8 @@
"description": "音声ファイルのアップロード日時yyyy-mm-ddThh:mm:ss.sss"
},
"fileSize": {
"type": "string",
"description": "音声ファイルのファイルサイズ"
"type": "number",
"description": "音声ファイルのファイルサイズByte"
},
"priority": {
"type": "string",

View File

@ -41,6 +41,11 @@ export class FilesController {
description: '不正なパラメータ',
type: ErrorResponse,
})
@ApiResponse({
status: HttpStatus.UNAUTHORIZED,
description: '認証エラー',
type: ErrorResponse,
})
@ApiResponse({
status: HttpStatus.INTERNAL_SERVER_ERROR,
description: '想定外のサーバーエラー',

View File

@ -62,8 +62,8 @@ export class AudioUploadFinishedRequest {
description: '音声ファイルのアップロード日時yyyy-mm-ddThh:mm:ss.sss',
})
uploadedDate: string;
@ApiProperty()
fileSize: string;
@ApiProperty({ description: '音声ファイルのファイルサイズByte' })
fileSize: number;
@ApiProperty({ description: '優先度 "00":Normal / "01":High' })
priority: string;
@ApiProperty({ description: '録音形式: DSS/DS2(SP)/DS2(QP)' })

View File

@ -69,8 +69,8 @@ export class Task {
description: '音声ファイルのアップロード日時yyyy-mm-ddThh:mm:ss.sss',
})
audioUploadedDate: string;
@ApiProperty({ description: '音声ファイルのファイルサイズ' })
fileSize: string;
@ApiProperty({ description: '音声ファイルのファイルサイズByte' })
fileSize: number;
@ApiProperty({ description: '音声ファイルの優先度 "00":Normal / "01":High' })
priority: string;
@ApiProperty({ description: '録音形式: DSS/DS2(SP)/DS2(QP)' })