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) }