From bf7bf6a9bf2e2f59b1806f7822b444ce2e234949 Mon Sep 17 00:00:00 2001
From: wucongxing8150 <815046773@qq.com>
Date: Fri, 7 Mar 2025 17:26:03 +0800
Subject: [PATCH] 1
---
.gitignore | 23 +++++++++++++++++++++++
.idea/workspace.xml | 6 +++++-
api/dao/CaseComment.go | 2 +-
3 files changed, 29 insertions(+), 2 deletions(-)
create mode 100644 .gitignore
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..0216746
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,23 @@
+# ---> Go
+# Binaries for programs and plugins
+*.exe
+*.exe~
+*.dll
+*.so
+*.dylib
+
+# Test binary, built with `go test -c`
+*.test
+
+# Output of the go coverage tool, specifically when used with LiteIDE
+*.out
+*.log
+
+# Dependency directories (remove the comment below to include it)
+# vendor/
+.idea/
+.git/
+.DS_Store/
+.tmp/
+api/.DS_Store
+api/dao/.DS_Store
\ No newline at end of file
diff --git a/.idea/workspace.xml b/.idea/workspace.xml
index 6b9d16e..a753d98 100644
--- a/.idea/workspace.xml
+++ b/.idea/workspace.xml
@@ -4,7 +4,7 @@
-
+
@@ -50,6 +50,10 @@
+
+
+
+
true
diff --git a/api/dao/CaseComment.go b/api/dao/CaseComment.go
index f41504c..0da44f0 100644
--- a/api/dao/CaseComment.go
+++ b/api/dao/CaseComment.go
@@ -124,7 +124,7 @@ func (r *CaseCommentDao) GetCaseCommentPageSearch(req requests.GetCaseCommentPag
// 构建查询条件
query := global.Db.Model(&model.CaseComment{})
- // 用户1
+ // 用户12
query = query.Preload("User")
// 用户医院