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 AuthenticationUsecase

type AuthenticationUsecase interface {
	Register(models.ProviderRegister) error
	Login(models.Login) (string, error)
}

type NotificationUsecase

type NotificationUsecase interface {
	GetAllNotifications(provider_id int) ([]domain.ProviderNotification, error)
	ViewNotification(notification_id int) (domain.ProviderNotification, error)
}

type ProfileUsecase

type ProfileUsecase interface {
	AddService(int, int) error
	DeleteService(int, int) error
	AddPreferredWorkingLocation(int, int) error
	RemovePreferredLocation(id, district int) error
	GetMyServices(int) ([]models.GetServices, error)
	GetAllPreferredLocations(int) ([]models.GetLocations, error)
	GetDetailsOfProviders(id int) (models.ProviderDetailsForUser, error)
}

type WorkUseCase

type WorkUseCase interface {
	GetAllLeads(int, int) ([]models.WorkDetails, error)
	ViewLeads(int) (models.WorkDetails, error)
	PlaceBid(models.PlaceBid) error
	ReplaceBidWithNewBid(models.PlaceBid) error
	GetAllOtherBidsOnTheLeads(work_id int) ([]models.BidDetails, error)
	GetWorksOfAProvider(int) ([]models.WorkDetails, error)
	GetAllOnGoingWorks(int) ([]models.WorkDetails, error)
	GetCompletedWorks(int) ([]models.WorkDetails, error)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳