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"`