From 02a2176f7c5733a4e4c4429c2028bbb86a967ce7 Mon Sep 17 00:00:00 2001 From: jiangshuai <291802688@qq.com> Date: 星期二, 06 二月 2024 10:13:38 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.5.5:10010/r/aps/SRM --- 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