From e7040e1a02a642ee92ccdeab6b268753c140228b Mon Sep 17 00:00:00 2001
From: Ruixiaoke <524373365@qq.com>
Date: Fri, 29 Aug 2025 11:29:21 +1000
Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A1=B9=E7=9B=AE=E4=BE=9D?=
=?UTF-8?q?=E8=B5=96=EF=BC=8C=E5=8D=87=E7=BA=A7MongoDB.Driver=E7=89=88?=
=?UTF-8?q?=E6=9C=AC=E8=87=B33.4.3=EF=BC=9B=E4=BF=AE=E6=94=B9Secrets.json?=
=?UTF-8?q?=E4=BB=A5=E5=8C=85=E5=90=AB=E7=9C=9F=E5=AE=9E=E7=9A=84=E6=95=B0?=
=?UTF-8?q?=E6=8D=AE=E5=BA=93=E8=BF=9E=E6=8E=A5=E5=AD=97=E7=AC=A6=E4=B8=B2?=
=?UTF-8?q?=EF=BC=9B=E5=9C=A8Goal=E6=A8=A1=E5=9E=8B=E4=B8=AD=E6=B7=BB?=
=?UTF-8?q?=E5=8A=A0Icon=E5=B1=9E=E6=80=A7=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
CommBank-Server/CommBank.csproj | 2 +-
CommBank-Server/Models/Goal.cs | 4 ++++
CommBank-Server/Secrets.json | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/CommBank-Server/CommBank.csproj b/CommBank-Server/CommBank.csproj
index 983cc88..131864b 100644
--- a/CommBank-Server/CommBank.csproj
+++ b/CommBank-Server/CommBank.csproj
@@ -13,7 +13,7 @@
-
+
diff --git a/CommBank-Server/Models/Goal.cs b/CommBank-Server/Models/Goal.cs
index 77ff1ad..33f1653 100644
--- a/CommBank-Server/Models/Goal.cs
+++ b/CommBank-Server/Models/Goal.cs
@@ -11,6 +11,7 @@ public class Goal
public string? Name { get; set; }
+
public UInt64 TargetAmount { get; set; } = 0;
public DateTime TargetDate { get; set; }
@@ -27,4 +28,7 @@ public class Goal
[BsonRepresentation(BsonType.ObjectId)]
public string? UserId { get; set; }
+
+ public string? Icon { get; set; }
+
}
\ No newline at end of file
diff --git a/CommBank-Server/Secrets.json b/CommBank-Server/Secrets.json
index 0e5bf94..43f1db2 100644
--- a/CommBank-Server/Secrets.json
+++ b/CommBank-Server/Secrets.json
@@ -1,5 +1,5 @@
{
"ConnectionStrings": {
- "CommBank": "{CONNECTION_STRING}"
+ "CommBank": "mongodb+srv://qq524373365_db_user:grfy5RCWgWDHhy8T@commdb.e6rrygv.mongodb.net/?retryWrites=true&w=majority&appName=CommDB"
}
}
\ No newline at end of file