From d20acf38c36c11ee4428c3e74a17f5870dc61b51 Mon Sep 17 00:00:00 2001 From: liujiandao <274878379@qq.com> Date: 星期四, 16 十一月 2023 09:51:00 +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