From 8a2d6c332a089c2dbb7351514499e16f343959ff Mon Sep 17 00:00:00 2001 From: sowgro Date: Wed, 26 Feb 2025 20:41:35 -0500 Subject: Start services and organize project --- ufund-ui/src/app/models/Need.ts | 13 +++++++++++++ ufund-ui/src/app/models/User.ts | 6 ++++++ 2 files changed, 19 insertions(+) create mode 100644 ufund-ui/src/app/models/Need.ts create mode 100644 ufund-ui/src/app/models/User.ts (limited to 'ufund-ui/src/app/models') diff --git a/ufund-ui/src/app/models/Need.ts b/ufund-ui/src/app/models/Need.ts new file mode 100644 index 0000000..607a6a7 --- /dev/null +++ b/ufund-ui/src/app/models/Need.ts @@ -0,0 +1,13 @@ +export interface Need { + name: string, + id: number, + filterAttributes: String[], + type: GoalType; + maxGoal: number; + current: number; +} + +enum GoalType { + MONETARY, + PHYSICAL +} diff --git a/ufund-ui/src/app/models/User.ts b/ufund-ui/src/app/models/User.ts new file mode 100644 index 0000000..46fe4a1 --- /dev/null +++ b/ufund-ui/src/app/models/User.ts @@ -0,0 +1,6 @@ +import {Need} from './Need'; + +export interface User { + username: string; + cupboard: Need[]; +} -- cgit v1.2.3