mirror of
https://github.com/silenceper/wechat.git
synced 2026-02-23 13:42:25 +08:00
fix
This commit is contained in:
@@ -76,9 +76,7 @@ func (s *MiniDrama) SingleFileUpload(ctx context.Context, in *SingleFileUploadRe
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "SingleFileUpload"); err != nil {
|
err = util.DecodeWithError(response, out, "SingleFileUpload")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,9 +92,7 @@ func (s *MiniDrama) PullUpload(ctx context.Context, in *PullUploadRequest) (out
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "PullUpload"); err != nil {
|
err = util.DecodeWithError(response, out, "PullUpload")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -113,9 +109,7 @@ func (s *MiniDrama) GetTask(ctx context.Context, in *GetTaskRequest) (out *GetTa
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "GetTask"); err != nil {
|
err = util.DecodeWithError(response, out, "GetTask")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -132,9 +126,7 @@ func (s *MiniDrama) ApplyUpload(ctx context.Context, in *ApplyUploadRequest) (ou
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "ApplyUpload"); err != nil {
|
err = util.DecodeWithError(response, out, "ApplyUpload")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -173,9 +165,7 @@ func (s *MiniDrama) UploadPart(ctx context.Context, in *UploadPartRequest) (out
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "UploadPart"); err != nil {
|
err = util.DecodeWithError(response, out, "UploadPart")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -192,9 +182,7 @@ func (s *MiniDrama) CommitUpload(ctx context.Context, in *CommitUploadRequest) (
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "CommitUpload"); err != nil {
|
err = util.DecodeWithError(response, out, "CommitUpload")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -211,9 +199,7 @@ func (s *MiniDrama) ListMedia(ctx context.Context, in *ListMediaRequest) (out *L
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "ListMedia"); err != nil {
|
err = util.DecodeWithError(response, out, "ListMedia")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -230,9 +216,7 @@ func (s *MiniDrama) GetMedia(ctx context.Context, in *GetMediaRequest) (out *Get
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "GetMedia"); err != nil {
|
err = util.DecodeWithError(response, out, "GetMedia")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -249,9 +233,7 @@ func (s *MiniDrama) GetMediaLink(ctx context.Context, in *GetMediaLinkRequest) (
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "GetMediaLink"); err != nil {
|
err = util.DecodeWithError(response, out, "GetMediaLink")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -268,9 +250,7 @@ func (s *MiniDrama) DeleteMedia(ctx context.Context, in *DeleteMediaRequest) (ou
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "DeleteMedia"); err != nil {
|
err = util.DecodeWithError(response, out, "DeleteMedia")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -287,9 +267,7 @@ func (s *MiniDrama) AuditDrama(ctx context.Context, in *AuditDramaRequest) (out
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "AuditDrama"); err != nil {
|
err = util.DecodeWithError(response, out, "AuditDrama")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -306,9 +284,7 @@ func (s *MiniDrama) ListDramas(ctx context.Context, in *ListDramasRequest) (out
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "ListDramas"); err != nil {
|
err = util.DecodeWithError(response, out, "ListDramas")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,9 +300,7 @@ func (s *MiniDrama) GetDrama(ctx context.Context, in *GetDramaRequest) (out *Get
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "GetDrama"); err != nil {
|
err = util.DecodeWithError(response, out, "GetDrama")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -342,9 +316,7 @@ func (s *MiniDrama) GetCdnUsageData(ctx context.Context, in *GetCdnUsageDataRequ
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "GetCdnUsageData"); err != nil {
|
err = util.DecodeWithError(response, out, "GetCdnUsageData")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -360,9 +332,7 @@ func (s *MiniDrama) GetCdnLogs(ctx context.Context, in *GetCdnLogsRequest) (out
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "GetCdnLogs"); err != nil {
|
err = util.DecodeWithError(response, out, "GetCdnLogs")
|
||||||
return
|
|
||||||
}
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,10 +60,7 @@ func (s *VirtualPayment) QueryUserBalance(ctx context.Context, in *QueryUserBala
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "QueryUserBalance"); err != nil {
|
err = util.DecodeWithError(response, out, "QueryUserBalance")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -91,10 +88,7 @@ func (s *VirtualPayment) CurrencyPay(ctx context.Context, in *CurrencyPayRequest
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "CurrencyPay"); err != nil {
|
err = util.DecodeWithError(response, out, "CurrencyPay")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -122,10 +116,7 @@ func (s *VirtualPayment) QueryOrder(ctx context.Context, in *QueryOrderRequest)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "QueryOrder"); err != nil {
|
err = util.DecodeWithError(response, out, "QueryOrder")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -153,10 +144,7 @@ func (s *VirtualPayment) CancelCurrencyPay(ctx context.Context, in *CancelCurren
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "CancelCurrencyPay"); err != nil {
|
err = util.DecodeWithError(response, out, "CancelCurrencyPay")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -186,10 +174,7 @@ func (s *VirtualPayment) NotifyProvideGoods(ctx context.Context, in *NotifyProvi
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "NotifyProvideGoods"); err != nil {
|
err = util.DecodeWithError(response, out, "NotifyProvideGoods")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -218,10 +203,7 @@ func (s *VirtualPayment) PresentCurrency(ctx context.Context, in *PresentCurrenc
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "PresentCurrency"); err != nil {
|
err = util.DecodeWithError(response, out, "PresentCurrency")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,10 +232,7 @@ func (s *VirtualPayment) DownloadBill(ctx context.Context, in *DownloadBillReque
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "DownloadBill"); err != nil {
|
err = util.DecodeWithError(response, out, "DownloadBill")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -282,10 +261,7 @@ func (s *VirtualPayment) RefundOrder(ctx context.Context, in *RefundOrderRequest
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "RefundOrder"); err != nil {
|
err = util.DecodeWithError(response, out, "RefundOrder")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -314,10 +290,7 @@ func (s *VirtualPayment) CreateWithdrawOrder(ctx context.Context, in *CreateWith
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "CreateWithdrawOrder"); err != nil {
|
err = util.DecodeWithError(response, out, "CreateWithdrawOrder")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -346,10 +319,7 @@ func (s *VirtualPayment) QueryWithdrawOrder(ctx context.Context, in *QueryWithdr
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "QueryWithdrawOrder"); err != nil {
|
err = util.DecodeWithError(response, out, "QueryWithdrawOrder")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -378,10 +348,7 @@ func (s *VirtualPayment) StartUploadGoods(ctx context.Context, in *StartUploadGo
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "StartUploadGoods"); err != nil {
|
err = util.DecodeWithError(response, out, "StartUploadGoods")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -410,10 +377,7 @@ func (s *VirtualPayment) QueryUploadGoods(ctx context.Context, in *QueryUploadGo
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "QueryUploadGoods"); err != nil {
|
err = util.DecodeWithError(response, out, "QueryUploadGoods")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -442,10 +406,7 @@ func (s *VirtualPayment) StartPublishGoods(ctx context.Context, in *StartPublish
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "StartPublishGoods"); err != nil {
|
err = util.DecodeWithError(response, out, "StartPublishGoods")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -474,10 +435,7 @@ func (s *VirtualPayment) QueryPublishGoods(ctx context.Context, in *QueryPublish
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 使用通用方法返回错误
|
// 使用通用方法返回错误
|
||||||
if err = util.DecodeWithError(response, out, "QueryPublishGoods"); err != nil {
|
err = util.DecodeWithError(response, out, "QueryPublishGoods")
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user