Documentation ¶
Index ¶
- Constants
- func NewFreelancerRepository(db *sql.DB) freelancer.Repository
- type FreelancerRepository
- func (r *FreelancerRepository) Create(f *model.Freelancer) error
- func (r *FreelancerRepository) Edit(f *model.Freelancer) error
- func (r *FreelancerRepository) Find(id int64) (*model.ExtendFreelancer, *model.FreelancerContracts, error)
- func (r *FreelancerRepository) FindByUser(accountId int64) (*model.Freelancer, error)
- func (r *FreelancerRepository) FindPartByTime(offset int, limit int) ([]model.ExtendFreelancer, error)
- func (r *FreelancerRepository) ListOnPattern(pattern string, params model.SearchParams) ([]model.ExtendFreelancer, error)
Constants ¶
View Source
const (
PATH2AVATAR = "https://api.fwork.live/account/avatar/"
)
Variables ¶
This section is empty.
Functions ¶
func NewFreelancerRepository ¶
func NewFreelancerRepository(db *sql.DB) freelancer.Repository
Types ¶
type FreelancerRepository ¶
type FreelancerRepository struct {
// contains filtered or unexported fields
}
func (*FreelancerRepository) Create ¶
func (r *FreelancerRepository) Create(f *model.Freelancer) error
func (*FreelancerRepository) Edit ¶
func (r *FreelancerRepository) Edit(f *model.Freelancer) error
func (*FreelancerRepository) Find ¶
func (r *FreelancerRepository) Find(id int64) (*model.ExtendFreelancer, *model.FreelancerContracts, error)
func (*FreelancerRepository) FindByUser ¶
func (r *FreelancerRepository) FindByUser(accountId int64) (*model.Freelancer, error)
func (*FreelancerRepository) FindPartByTime ¶
func (r *FreelancerRepository) FindPartByTime(offset int, limit int) ([]model.ExtendFreelancer, error)
func (*FreelancerRepository) ListOnPattern ¶
func (r *FreelancerRepository) ListOnPattern(pattern string, params model.SearchParams) ([]model.ExtendFreelancer, error)
Click to show internal directories.
Click to hide internal directories.