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, mchCertNo string) (*cashcoupons.Callback, error) SetCallback(ctx context.Context, mchId, mchCertNo, url string) (*cashcoupons.SetCallbackResponse, error) RegisterNotifyTag(ctx context.Context, stockID string) error }