Documentation
¶
Overview ¶
Package ads implements the ads subdomain of the support module. Only the module facade (internal/module/support) may reach it.
Index ¶
- type Service
- func (s *Service) Create(ctx context.Context, req *dto.CreateAdsRequest) error
- func (s *Service) Delete(ctx context.Context, req *dto.DeleteAdsRequest) error
- func (s *Service) GetDetail(ctx context.Context, req *dto.GetAdsDetailRequest) (*dto.Ads, error)
- func (s *Service) GetPublicAds(ctx context.Context, req *dto.GetAdsRequest) (resp *dto.GetAdsResponse, err error)
- func (s *Service) List(ctx context.Context, req *dto.GetAdsListRequest) (*dto.GetAdsListResponse, error)
- func (s *Service) Update(ctx context.Context, req *dto.UpdateAdsRequest) 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.AdsRepo) *Service
func (*Service) GetPublicAds ¶
func (s *Service) GetPublicAds(ctx context.Context, req *dto.GetAdsRequest) (resp *dto.GetAdsResponse, err error)
GetPublicAds lists the active ads for the public site.
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *dto.GetAdsListRequest) (*dto.GetAdsListResponse, error)
Click to show internal directories.
Click to hide internal directories.