From de4bcd1dead50b05f716bc5718be5540bdb96783 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期日, 28 四月 2024 17:23:29 +0800
Subject: [PATCH] fix
---
api/v1/test/industry.go | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/api/v1/test/industry.go b/api/v1/test/industry.go
index 871e889..47caef3 100644
--- a/api/v1/test/industry.go
+++ b/api/v1/test/industry.go
@@ -1,14 +1,14 @@
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/common/response"
- "github.com/flipped-aurora/gin-vue-admin/server/model/test"
- testReq "github.com/flipped-aurora/gin-vue-admin/server/model/test/request"
- "github.com/flipped-aurora/gin-vue-admin/server/service"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
+ "srm/global"
+ "srm/model/common/request"
+ "srm/model/common/response"
+ "srm/model/test"
+ testReq "srm/model/test/request"
+ "srm/service"
)
type IndustryApi struct {
@@ -116,12 +116,11 @@
if err := iService.CreateIndustry(&industry); err != nil {
global.GVA_LOG.Error("鏇存柊澶辫触!", zap.Error(err))
response.FailWithMessage("淇濆瓨澶辫触", c)
+ return
}
}
- if err == nil {
- response.OkWithMessage("鏇存柊鎴愬姛", c)
- }
+ response.OkWithMessage("鏇存柊鎴愬姛", c)
}
// FindIndustry 鐢╥d鏌ヨIndustry
--
Gitblit v1.8.0