diff --git a/server/data-transfer/internal/logic/uploadqrcodelogic.go b/server/data-transfer/internal/logic/uploadqrcodelogic.go index f5b3c77a..15c3467b 100644 --- a/server/data-transfer/internal/logic/uploadqrcodelogic.go +++ b/server/data-transfer/internal/logic/uploadqrcodelogic.go @@ -59,6 +59,6 @@ func (l *UploadQrcodeLogic) UploadQrcode(req *types.UploadQrcodeReq) (resp *type } return resp.SetStatusWithMessage(basic.CodeOK, "success", types.UploadQrcodeRsp{ Link: "", - D: qrType + " " + imgBase64, + Data: qrType + " " + imgBase64, }) } diff --git a/server/data-transfer/internal/types/types.go b/server/data-transfer/internal/types/types.go index 110adbbf..e176e1da 100644 --- a/server/data-transfer/internal/types/types.go +++ b/server/data-transfer/internal/types/types.go @@ -23,7 +23,7 @@ type UploadQrcodeReq struct { type UploadQrcodeRsp struct { Link string `json:"link"` - D string `json:"d"` + Data string `json:"d"` } type Response struct { diff --git a/server_api/data-transfer.api b/server_api/data-transfer.api index b63798fd..443759c3 100644 --- a/server_api/data-transfer.api +++ b/server_api/data-transfer.api @@ -42,5 +42,5 @@ type UploadQrcodeReq { } type UploadQrcodeRsp { Link string `json:"link"` - D string `json:"d"` + Data string `json:"d"` } \ No newline at end of file