repository

package
v0.0.0-...-db3cac9 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompanyRepository

type CompanyRepository interface {
	CompanyList() ([]*hycompany.Company, error)
	GetCompany(companyID int) (*hycompany.Company, error)
	IsCompany(companyID int) (bool, error)
	InsertCompany(name, address string, countryID int16) (int, error)
	UpdateCompany(companyID int, name, address string, countryID int16) (int, error)
	DeleteCompany(companyID int) (int, error)
}

CompanyRepository interface

func NewCompanyRepository

func NewCompanyRepository(dbConn *sql.DB) CompanyRepository

NewCompanyRepository returns CompanyRepository

type CustomCompany

type CustomCompany struct {
	CompanyID   int
	CompanyName string
	Address     string
	CountryName string
}

type TechRepository

type TechRepository interface {
	TechList() ([]*hytech.Tech, error)
	GetTech(techID int) (*hytech.Tech, error)
	IsTech(techID int) (bool, error)
	InsertTech(name string) (int, error)
	UpdateTech(techID int, name string) (int, error)
	DeleteTech(techID int) (int, error)
}

TechRepository interface

func NewTechRepository

func NewTechRepository(dbConn *sql.DB) TechRepository

NewTechRepository returns TechRepository

type UserRepository

type UserRepository interface {
	Login(email, password string) (int, error)
	UserList() ([]*hyuser.User, error)
	GetUser(userID int) (*hyuser.User, error)
	IsUser(userID int) (bool, error)
	InsertUser(name, email, password string) (int, error)
	UpdateUser(userID int, name, email, password string) (int, error)
	DeleteUser(userID int) (int, error)
}

UserRepository interface

func NewUserRepository

func NewUserRepository(dbConn *sql.DB, hash encryption.Hasher) UserRepository

NewUserRepository returns UserRepository

type UserTech

type UserTech struct {
	ID   int    `boil:"tech_id" json:"tech_id"`
	Name string `boil:"tech_name" json:"tech_name"`
}

type UserTechRepository

type UserTechRepository interface {
	GetUserLikeTechs(userID int) ([]UserTech, error)
	GetUserDisLikeTechs(userID int) ([]UserTech, error)
}

UserTechRepository interface

func NewUserTechRepository

func NewUserTechRepository(dbConn *sql.DB) UserTechRepository

NewUserTechRepository returns UserTechRepository

type UserWorkHistoryRepository

type UserWorkHistoryRepository interface {
	GetUserWorks(userID int) ([]*hyuserworkhistory.Userworkhistory, error)
}

UserWorkHistoryRepository interface

func NewUserWorkHistoryRepository

func NewUserWorkHistoryRepository(dbConn *sql.DB) UserWorkHistoryRepository

NewUserWorkHistoryRepository returns UserWorkHistoryRepository

Jump to

Keyboard shortcuts

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