Documentation ¶
Index ¶
- Variables
- type CampaignRepo
- type CampaignUseCase
- type CreateCampaignRequest
- type CreateUserRequest
- type CreateUserVoucherRequest
- type CreateVoucherCampaignRequest
- type CreateVoucherRequest
- type GetUserRequest
- type IncreaseCampaignSlotRequest
- type Tx
- type UserRepo
- type UserUseCase
- type UserVoucherRepo
- type VoucherCampaignRepo
- type VoucherRepo
- type VoucherUseCase
Constants ¶
This section is empty.
Variables ¶
View Source
var ProviderSet = wire.NewSet(NewUserUserCase, NewVoucherUseCase, NewCampaignUseCase)
ProviderSet is biz providers.
Functions ¶
This section is empty.
Types ¶
type CampaignRepo ¶
type CampaignUseCase ¶
type CampaignUseCase struct {
// contains filtered or unexported fields
}
func NewCampaignUseCase ¶
func NewCampaignUseCase(voucherRepo VoucherRepo, voucherCampaignRepo VoucherCampaignRepo, campaignRepo CampaignRepo) *CampaignUseCase
func (*CampaignUseCase) CreateCampaign ¶
func (uc *CampaignUseCase) CreateCampaign(ctx context.Context, req *server.CreateCampaignRequest) (int64, error)
type CreateCampaignRequest ¶
type CreateUserRequest ¶
type CreateVoucherRequest ¶
type GetUserRequest ¶
type GetUserRequest struct {
Account string
}
type UserUseCase ¶
type UserUseCase struct {
// contains filtered or unexported fields
}
func NewUserUserCase ¶
func NewUserUserCase(repo UserRepo, natsCli nats.JetStreamContext, topic string) *UserUseCase
func (*UserUseCase) Login ¶
func (uc *UserUseCase) Login(ctx context.Context, req *server.LoginRequest) error
func (*UserUseCase) Register ¶
func (uc *UserUseCase) Register(ctx context.Context, req *server.RegisterNewAccountRequest) error
type UserVoucherRepo ¶
type UserVoucherRepo interface { Tx CreateUserVoucher(ctx context.Context, req *CreateUserVoucherRequest) error }
type VoucherCampaignRepo ¶
type VoucherRepo ¶
type VoucherUseCase ¶
type VoucherUseCase struct {
// contains filtered or unexported fields
}
func NewVoucherUseCase ¶
func NewVoucherUseCase(repo VoucherRepo) *VoucherUseCase
func (*VoucherUseCase) CreateVoucher ¶
func (uc *VoucherUseCase) CreateVoucher(ctx context.Context, req *server.CreateVoucherRequest) error
Click to show internal directories.
Click to hide internal directories.