49 lines
1.5 KiB
Go
49 lines
1.5 KiB
Go
package cmb
|
|
|
|
import (
|
|
"voucher/internal/biz/mixrepos"
|
|
"voucher/internal/biz/repo"
|
|
"voucher/internal/biz/wechatrepo"
|
|
"voucher/internal/conf"
|
|
"voucher/internal/data"
|
|
)
|
|
|
|
type Cmb struct {
|
|
bc *conf.Bootstrap
|
|
rdb *data.Rdb
|
|
OrderRepo repo.OrderRepo
|
|
OrderWechatRepo repo.OrderWechatRepo
|
|
ProductRepo repo.ProductRepo
|
|
OrderNotifyRepo repo.OrderNotifyRepo
|
|
WechatNotifyRegisterTagRepo repo.WechatNotifyRegisterTagRepo
|
|
WechatCpnRepo wechatrepo.WechatCpnRepo
|
|
GenerateMixRepo mixrepos.GenerateMixRepo
|
|
CmbMixRepo mixrepos.CmbMixRepo
|
|
}
|
|
|
|
func NewCmb(
|
|
bc *conf.Bootstrap,
|
|
rdb *data.Rdb,
|
|
orderRepo repo.OrderRepo,
|
|
OrderWechatRepo repo.OrderWechatRepo,
|
|
ProductRepo repo.ProductRepo,
|
|
OrderNotifyRepo repo.OrderNotifyRepo,
|
|
WechatNotifyRegisterTagRepo repo.WechatNotifyRegisterTagRepo,
|
|
WechatCpnRepo wechatrepo.WechatCpnRepo,
|
|
GenerateMixRepo mixrepos.GenerateMixRepo,
|
|
CmbMixRepo mixrepos.CmbMixRepo,
|
|
) *Cmb {
|
|
return &Cmb{
|
|
bc: bc,
|
|
rdb: rdb,
|
|
OrderRepo: orderRepo,
|
|
OrderWechatRepo: OrderWechatRepo,
|
|
ProductRepo: ProductRepo,
|
|
OrderNotifyRepo: OrderNotifyRepo,
|
|
WechatNotifyRegisterTagRepo: WechatNotifyRegisterTagRepo,
|
|
WechatCpnRepo: WechatCpnRepo,
|
|
GenerateMixRepo: GenerateMixRepo,
|
|
CmbMixRepo: CmbMixRepo,
|
|
}
|
|
}
|