repository

package
v0.0.0-...-7c35eaa Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFeedRepo

func NewFeedRepo(db database.Database) entity.FeedRepo

func NewItemRepo

func NewItemRepo(db database.Database) entity.ItemRepo

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 FeedRepo

type FeedRepo struct {
	// contains filtered or unexported fields
}

func (*FeedRepo) FindAll

func (fr *FeedRepo) FindAll(keyword *string) ([]entity.Feed, error)

FindAll implements entity.FeedRepo.

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) Exist

func (ir *ItemRepo) Exist(id int64) (bool, error)

Exist 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

func (ir *ItemRepo) FindAllViewByExcludedIds(ids []int64, perPage int32) ([]entity.ItemView, error)

FindAllViewByExcludedIds implements entity.ItemRepo.

func (*ItemRepo) IncreaseLikeCount

func (ir *ItemRepo) IncreaseLikeCount(id int64) (int64, error)

IncreaseLikeCount implements entity.ItemRepo.

func (*ItemRepo) IncreaseViewCount

func (ir *ItemRepo) IncreaseViewCount(id int64) (int64, error)

IncreaseViewCount implements entity.ItemRepo.

func (*ItemRepo) Update

func (ir *ItemRepo) Update(id int64, newItem entity.Item) (entity.Item, error)

Update implements entity.ItemRepo.

type JobTagRepo

type JobTagRepo struct {
	// contains filtered or unexported fields
}

func (*JobTagRepo) FindAll

func (jtr *JobTagRepo) FindAll() ([]entity.JobTag, error)

FindAll implements entity.JobTagRepo.

type SkillTagRepo

type SkillTagRepo struct {
	// contains filtered or unexported fields
}

func (*SkillTagRepo) FindAll

func (str *SkillTagRepo) FindAll() ([]entity.SkillTag, error)

FindAll implements entity.SkillTagRepo.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL