From 94f3085afd10d76fa6e0640b5eed1d615b11ecea Mon Sep 17 00:00:00 2001
From: qixiaoning <jony.kee@outlook.com>
Date: 星期五, 25 七月 2025 18:44:38 +0800
Subject: [PATCH] 修复标题
---
camera-common/models/Record.go | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/camera-common/models/Record.go b/camera-common/models/Record.go
index 956a266..e615e31 100644
--- a/camera-common/models/Record.go
+++ b/camera-common/models/Record.go
@@ -154,9 +154,9 @@
// 鐭ヨ瘑搴�
type KnowledgeDocumentOption struct {
Id string `db:"id" json:"id"`
- Title string `db:"file_name" json:"title"`
+ Title string `db:"title" json:"title"`
KnowId int64 `db:"know_id" json:"know_id"`
- FileUrl string `db:"file_name" json:"file_url"`
+ FileUrl string `db:"title" json:"file_url"`
}
// Pagination 鍒嗛〉淇℃伅
@@ -488,7 +488,7 @@
placeholders[i] = "?"
args[i] = id
}
- sqlStr := `SELECT id, know_id, file_name FROM mal_knowledge_document where id in (` + strings.Join(placeholders, ",") + `)`
+ sqlStr := `SELECT id, know_id, file_name as title FROM mal_knowledge_document where id in (` + strings.Join(placeholders, ",") + `)`
if err := db.Raw(sqlStr, args...).Scan(&items).Error; err != nil {
return nil, err
}
--
Gitblit v1.8.0