Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvertService ¶
type AdvertService struct {
// contains filtered or unexported fields
}
func NewAdvertService ¶
func NewAdvertService(repo repository.Advert) *AdvertService
func (*AdvertService) Create ¶
func (s *AdvertService) Create(advert *model.DetailedAdvert) (int, error)
func (*AdvertService) GetById ¶
func (s *AdvertService) GetById(advertId int, fields bool) (*model.DetailedAdvert, error)
type Service ¶
type Service struct {
Advert
}
func NewService ¶
func NewService(repos *repository.Repository) *Service
Click to show internal directories.
Click to hide internal directories.