From 8a6949c5fd886a927ecd522e8a4f27c958488398 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Fri, 21 Mar 2025 19:20:20 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=A8=A1=E5=9E=8B=E6=9B=B4?= =?UTF-8?q?=E6=96=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dao/model.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dao/model.go b/dao/model.go index 21b9af9..3bbc992 100644 --- a/dao/model.go +++ b/dao/model.go @@ -61,7 +61,7 @@ func DeleteModelByID(id int) error { // 根据id更新模型 func UpdateModelByID(id int, userID uint, modelType, url, parameter, description string) error { - model := Model{UserID: userID, Type: modelType, Url: url, Parameter: parameter} + model := Model{UserID: userID, Type: modelType, Url: url, Parameter: parameter, Description: description} var res *gorm.DB if proto.Config.SERVER_SQL_LOG { res = DB.Debug().Model(&Model{}).Where("id = ?", id).Updates(&model)