implemented all controller/service verbs

This commit is contained in:
Joe Arndt 2025-12-11 22:33:29 -06:00
parent 085e84b086
commit f150fe84f2
9 changed files with 246 additions and 65 deletions

View file

@ -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;
}