From af984d9172297111c14ec2fd52cfa3246ab718eb Mon Sep 17 00:00:00 2001 From: laodaming <11058467+laudamine@user.noreply.gitee.com> Date: Mon, 12 Jun 2023 17:03:42 +0800 Subject: [PATCH] fix --- server/data-transfer/internal/types/types.go | 6 +++--- server_api/data-transfer.api | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/server/data-transfer/internal/types/types.go b/server/data-transfer/internal/types/types.go index 043ee41e..7dcaf75f 100644 --- a/server/data-transfer/internal/types/types.go +++ b/server/data-transfer/internal/types/types.go @@ -27,9 +27,9 @@ type UploadQrcodeRsp struct { } type UploadLogoReq struct { - SkuId int64 `json:"skuId"` - IsRemoveBg bool `json:"is_remove_bg"` - Proportion int64 `json:"proportion"` + SkuId int64 `form:"skuId"` + IsRemoveBg bool `form:"is_remove_bg"` + Proportion int64 `form:"proportion"` } type UploadLogoRsp struct { diff --git a/server_api/data-transfer.api b/server_api/data-transfer.api index 893859e3..e58aded5 100644 --- a/server_api/data-transfer.api +++ b/server_api/data-transfer.api @@ -50,9 +50,9 @@ type UploadQrcodeRsp { //上传logo type UploadLogoReq { - SkuId int64 `json:"skuId"` - IsRemoveBg bool `json:"is_remove_bg"` - Proportion int64 `json:"proportion"` + SkuId int64 `form:"skuId"` + IsRemoveBg bool `form:"is_remove_bg"` + Proportion int64 `form:"proportion"` } type UploadLogoRsp { NobgUrl string `json:"nobg_url"`