liujiandao
2023-11-16 d20acf38c36c11ee4428c3e74a17f5870dc61b51
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 用id查询Industry