From 2ee651f6d5612cdec35f6e5f8d9d5ff7c66b7ec4 Mon Sep 17 00:00:00 2001
From: zhangqian <zhangqian@123.com>
Date: 星期五, 19 四月 2024 16:57:09 +0800
Subject: [PATCH] 更改接口前置

---
 service/test/industry.go |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/service/test/industry.go b/service/test/industry.go
index 57add6e..1ac2a4c 100644
--- a/service/test/industry.go
+++ b/service/test/industry.go
@@ -1,10 +1,10 @@
 package test
 
 import (
-	"github.com/flipped-aurora/gin-vue-admin/server/global"
-	"github.com/flipped-aurora/gin-vue-admin/server/model/common/request"
-	"github.com/flipped-aurora/gin-vue-admin/server/model/test"
-	testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
+	"srm/global"
+	"srm/model/common/request"
+	"srm/model/test"
+	testReq "srm/model/test/request"
 )
 
 type IndustryService struct {
@@ -34,7 +34,7 @@
 // UpdateIndustry 鏇存柊Industry璁板綍
 // Author [piexlmax](https://github.com/piexlmax)
 func (iService *IndustryService) UpdateIndustry(i test.Industry) (err error) {
-	err = global.GVA_DB.Save(&i).Error
+	err = global.GVA_DB.Updates(&i).Error
 	return err
 }
 

--
Gitblit v1.8.0