voucher/internal/service/wechat_notify_consume.go

19 lines
342 B
Go

package service
import (
"context"
"encoding/json"
"voucher/internal/biz/bo"
)
func (j *VoucherService) WechatNotifyConsumer(ctx context.Context, tag, msg string) error {
var x *bo.WechatVoucherNotifyBo
if err := json.Unmarshal([]byte(msg), &x); err != nil {
return err
}
return j.VoucherBiz.WechatNotifyConsumer(ctx, tag, x)
}