28 lines
584 B
TypeScript
28 lines
584 B
TypeScript
|
import { ApiProperty } from '@nestjs/swagger'
|
||
|
|
||
|
export class StorageInfo {
|
||
|
@ApiProperty({ description: '文件ID' })
|
||
|
id: number
|
||
|
|
||
|
@ApiProperty({ description: '文件名' })
|
||
|
name: string
|
||
|
|
||
|
@ApiProperty({ description: '文件扩展名' })
|
||
|
extName: string
|
||
|
|
||
|
@ApiProperty({ description: '文件路径' })
|
||
|
path: string
|
||
|
|
||
|
@ApiProperty({ description: '文件类型' })
|
||
|
type: string
|
||
|
|
||
|
@ApiProperty({ description: '大小' })
|
||
|
size: string
|
||
|
|
||
|
@ApiProperty({ description: '上传时间' })
|
||
|
createdAt: string
|
||
|
|
||
|
@ApiProperty({ description: '上传者' })
|
||
|
username: string
|
||
|
}
|