From 0c3408286b2c6bac9fb870a6989d15f5a59b72a1 Mon Sep 17 00:00:00 2001 From: Sydonian <794346190@qq.com> Date: Tue, 15 Aug 2023 09:16:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=95=B0=E6=8D=AE=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/http/object.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/http/object.go b/internal/http/object.go index 1c5f37a..4843d98 100644 --- a/internal/http/object.go +++ b/internal/http/object.go @@ -118,7 +118,7 @@ func (s *ObjectService) Upload(ctx *gin.Context) { func (s *ObjectService) uploadRep(ctx *gin.Context, req *ObjectUploadReq) { log := logger.WithField("HTTP", "Object.Upload") - var repInfo models.RepRedundancyConfig + var repInfo models.RepRedundancyInfo if err := serder.AnyToAny(req.Info.Redundancy.Config, &repInfo); err != nil { log.Warnf("parsing rep redundancy config: %s", err.Error()) ctx.JSON(http.StatusBadRequest, Failed(errorcode.BadArgument, "invalid rep redundancy config"))