Documentation ¶
Index ¶
- func NewFeedRepo(db database.Database) entity.FeedRepo
- func NewItemRepo(db database.Database) entity.ItemRepo
- func NewJobTagRepo(db database.Database) entity.JobTagRepo
- func NewSkillTagRepo(db database.Database) entity.SkillTagRepo
- func NewSubscriptionRepo(db database.Database) entity.SubscriptionRepo
- type FeedRepo
- type ItemRepo
- func (ir *ItemRepo) CountView(company *string, companySizes *[]entity.CompanySizeType, ...) (int64, error)
- func (ir *ItemRepo) Exist(id int64) (bool, error)
- func (ir *ItemRepo) FindAllView(company *string, companySizes *[]entity.CompanySizeType, ...) ([]entity.ItemView, error)
- func (ir *ItemRepo) FindAllViewByExcludedIds(ids []int64, perPage int32) ([]entity.ItemView, error)
- func (ir *ItemRepo) IncreaseLikeCount(id int64) (int64, error)
- func (ir *ItemRepo) IncreaseViewCount(id int64) (int64, error)
- func (ir *ItemRepo) Update(id int64, newItem entity.Item) (entity.Item, error)
- type JobTagRepo
- type SkillTagRepo
- type SubscriptionRepo
- func (sr *SubscriptionRepo) Create(newSubscription entity.Subscription) (*entity.Subscription, error)
- func (sr *SubscriptionRepo) Delete(id int64) (*entity.Subscription, error)
- func (sr *SubscriptionRepo) ExistEmail(email string) (*int64, error)
- func (sr *SubscriptionRepo) Update(id int64, newSubscription entity.Subscription) (*entity.Subscription, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewJobTagRepo ¶
func NewJobTagRepo(db database.Database) entity.JobTagRepo
func NewSkillTagRepo ¶
func NewSkillTagRepo(db database.Database) entity.SkillTagRepo
func NewSubscriptionRepo ¶
func NewSubscriptionRepo(db database.Database) entity.SubscriptionRepo
Types ¶
type ItemRepo ¶
type ItemRepo struct {
// contains filtered or unexported fields
}
func (*ItemRepo) CountView ¶
func (ir *ItemRepo) CountView(company *string, companySizes *[]entity.CompanySizeType, jobTags, skillTags *[]int64) (int64, error)
Count implements entity.ItemRepo.
func (*ItemRepo) FindAllView ¶
func (ir *ItemRepo) FindAllView(company *string, companySizes *[]entity.CompanySizeType, jobTags, skillTags *[]int64, perPage int, page int) ([]entity.ItemView, error)
FindAll implements entity.ItemRepo.
func (*ItemRepo) FindAllViewByExcludedIds ¶
FindAllViewByExcludedIds implements entity.ItemRepo.
func (*ItemRepo) IncreaseLikeCount ¶
IncreaseLikeCount implements entity.ItemRepo.
func (*ItemRepo) IncreaseViewCount ¶
IncreaseViewCount implements entity.ItemRepo.
type JobTagRepo ¶
type JobTagRepo struct {
// contains filtered or unexported fields
}
type SkillTagRepo ¶
type SkillTagRepo struct {
// contains filtered or unexported fields
}
type SubscriptionRepo ¶
type SubscriptionRepo struct {
// contains filtered or unexported fields
}
func (*SubscriptionRepo) Create ¶
func (sr *SubscriptionRepo) Create(newSubscription entity.Subscription) (*entity.Subscription, error)
Create implements entity.SubscriptionRepo.
func (*SubscriptionRepo) Delete ¶
func (sr *SubscriptionRepo) Delete(id int64) (*entity.Subscription, error)
Delete implements entity.SubscriptionRepo.
func (*SubscriptionRepo) ExistEmail ¶
func (sr *SubscriptionRepo) ExistEmail(email string) (*int64, error)
ExistEmail implements entity.SubscriptionRepo.
func (*SubscriptionRepo) Update ¶
func (sr *SubscriptionRepo) Update(id int64, newSubscription entity.Subscription) (*entity.Subscription, error)
Update implements entity.SubscriptionRepo.
Click to show internal directories.
Click to hide internal directories.