better dto/entity structure for GET/POST
This commit is contained in:
parent
8f846bd253
commit
389ef8c7ce
9 changed files with 106 additions and 77 deletions
|
|
@ -28,16 +28,16 @@ export class GetExpenseDto {
|
|||
@ApiPropertyOptional({
|
||||
description: 'Note about expense'
|
||||
})
|
||||
note?: string;
|
||||
note: string;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
description: 'Merchant for the expense'
|
||||
})
|
||||
merchant?: Merchant;
|
||||
merchant: Merchant;
|
||||
|
||||
@ApiPropertyOptional({
|
||||
type: [Tag],
|
||||
description: 'List of tags for the expense'
|
||||
})
|
||||
tags?: Tag[];
|
||||
tags: Tag[];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue