interfaces

package
v0.0.0-...-6720ee0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthenticationRepository

type AuthenticationRepository interface {
	CheckIfPhoneNumberAlreadyExists(string) (bool, error)
	UserSignup(models.UserSignup) error
	CheckIfUserExistsByUsername(string) (bool, error)
	GetUserDetailsByUsername(string) (domain.User, error)
}

type WorkRepository

type WorkRepository interface {
	ListNewOpening(domain.Work) error
	FindUsername(id int) (string, error)
	GetAllWorksOfAUser(id int) ([]int, error)
	GetAllCompletedWorksOfAUser(id int) ([]int, error)
	GetAllOngoingWorksOfAUser(id int) ([]int, error)
	GetDetailsOfAWork(int) (models.MinWorkDetails, error)
	GetImagesOfAWork(int) ([]string, error)
	FindProviderIdFromWork(int) (int, error)
	FindProviderName(pro_id int) (string, error)
	AssignWorkToProvider(work_id, pro_id int) error
	MakeWorkAsCompleted(id int) error
	RateWork(models.RatingModel, int) error
}

Jump to

Keyboard shortcuts

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