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