|
|
@@ -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 |
|
|
|
} |
|
|
|
|
|
|
|