diff --git a/app/hdl/hdl_data_center_generate_data.go b/app/hdl/hdl_data_center_generate_data.go index 84ee760..0638ffa 100644 --- a/app/hdl/hdl_data_center_generate_data.go +++ b/app/hdl/hdl_data_center_generate_data.go @@ -127,13 +127,13 @@ func GenerateDataDoing(c *gin.Context) { e.OutErr(c, err1.Code, err1.Error()) return } - res := svc.DataCenterGenerateDataDoing(c, req) - if res != nil { - fmt.Println(res.Error()) - e.OutErr(c, 400, e.NewErr(400, "生成失败")) + err = svc.DataCenterGenerateDataDoing(c, req) + if err != nil { + fmt.Println(err.Error()) + e.OutErr(c, e.ERR, err.Error()) return } - e.OutSuc(c, res, nil) + e.OutSuc(c, "success", nil) return } diff --git a/go.mod b/go.mod index 1ea7a71..5024e81 100644 --- a/go.mod +++ b/go.mod @@ -36,7 +36,7 @@ require ( require ( code.fnuoos.com/go_rely_warehouse/zyos_go_mq.git v0.0.5 code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git v1.1.21-0.20240830072333-a1980ffb256e - code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241009083704-f83998f16847 + code.fnuoos.com/zhimeng/model.git v0.0.3-0.20241009095023-24f5079bb959 github.com/jinzhu/copier v0.4.0 )