voucher/internal/biz/wechatrepo/cpn.go

17 lines
582 B
Go

package wechatrepo
import (
"context"
"github.com/wechatpay-apiv3/wechatpay-go/services/cashcoupons"
"voucher/internal/biz/bo"
"voucher/internal/biz/vo"
)
type WechatCpnRepo interface {
Order(ctx context.Context, order *bo.OrderBo) (couponId string, err error)
Query(ctx context.Context, order *bo.OrderBo) (vo.OrderStatus, error)
QueryProduct(ctx context.Context, stockCreatorMchId, stockId string) (*cashcoupons.Stock, error)
QueryCallback(ctx context.Context, mchId string) (*cashcoupons.Callback, error)
RegisterNotifyTag(ctx context.Context, stockID string) error
}