Documentation
¶
Overview ¶
Package coupon implements the coupon management subdomain of the billing module. Only the module facade may reach it.
Index ¶
- type Service
- func (s *Service) BatchDelete(ctx context.Context, req *dto.BatchDeleteCouponRequest) error
- func (s *Service) Create(ctx context.Context, req *dto.CreateCouponRequest) error
- func (s *Service) Delete(ctx context.Context, req *dto.DeleteCouponRequest) error
- func (s *Service) List(ctx context.Context, req *dto.GetCouponListRequest) (*dto.GetCouponListResponse, error)
- func (s *Service) Update(ctx context.Context, req *dto.UpdateCouponRequest) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(repo repository.CouponRepo) *Service
func (*Service) BatchDelete ¶
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *dto.GetCouponListRequest) (*dto.GetCouponListResponse, error)
Click to show internal directories.
Click to hide internal directories.