implemented all controller/service verbs
This commit is contained in:
parent
085e84b086
commit
f150fe84f2
9 changed files with 246 additions and 65 deletions
|
|
@ -1,19 +1,24 @@
|
|||
import { PartialType } from '@nestjs/mapped-types';
|
||||
|
||||
export class CreateExpenseDto {
|
||||
year: string;
|
||||
month: string;
|
||||
day: string;
|
||||
date: Date;
|
||||
cents: number;
|
||||
category: string;
|
||||
merchant: string;
|
||||
subcategory: string[];
|
||||
tags: string[];
|
||||
categoryId: string;
|
||||
merchantId?: string;
|
||||
subcategoryIds?: string[];
|
||||
tagIds?: string[];
|
||||
description?: string;
|
||||
}
|
||||
|
||||
export class UpdateExpenseDto extends PartialType(CreateExpenseDto) { }
|
||||
export class UpdateExpenseDto extends PartialType(CreateExpenseDto) {}
|
||||
|
||||
export class GetExpenseDto extends CreateExpenseDto{
|
||||
id: number;
|
||||
export class GetExpenseDto {
|
||||
id: string;
|
||||
date: Date;
|
||||
cents: number;
|
||||
category: string;
|
||||
merchant?: string;
|
||||
subcategories?: string[];
|
||||
tags?: string[];
|
||||
description?: string;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue