Documentation
¶
Overview ¶
Package announcement implements the announcement 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.CreateAnnouncementRequest) error
- func (s *Service) Delete(ctx context.Context, req *dto.DeleteAnnouncementRequest) error
- func (s *Service) Get(ctx context.Context, req *dto.GetAnnouncementRequest) (*dto.Announcement, error)
- func (s *Service) List(ctx context.Context, req *dto.GetAnnouncementListRequest) (*dto.GetAnnouncementListResponse, error)
- func (s *Service) QueryVisible(ctx context.Context, req *dto.QueryAnnouncementRequest) (*dto.QueryAnnouncementResponse, error)
- func (s *Service) Update(ctx context.Context, req *dto.UpdateAnnouncementRequest) 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.AnnouncementRepo) *Service
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, req *dto.GetAnnouncementRequest) (*dto.Announcement, error)
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *dto.GetAnnouncementListRequest) (*dto.GetAnnouncementListResponse, error)
func (*Service) QueryVisible ¶
func (s *Service) QueryVisible(ctx context.Context, req *dto.QueryAnnouncementRequest) (*dto.QueryAnnouncementResponse, error)
Click to show internal directories.
Click to hide internal directories.