proposal

package
v0.0.0-...-945c817 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Create(response *model.Response) error
	Edit(response *model.Response) error
	ListForFreelancer(int64) ([]model.ExtendResponse, error)
	ListForManager(int64) ([]model.ExtendResponse, error)
	Find(int64) (*model.Response, error)
	ListResponsesOnJobID(jobID int64) ([]model.ExtendResponse, error)
	CheckForHavingResponse(jobID int64, freelID int64) (bool, error)
}

type Usecase

type Usecase interface {
	CreateResponse(user *model.User, response *model.Response, jobId int64) error
	GetResponses(user *model.User) ([]model.ExtendResponse, error)
	AcceptResponse(user *model.User, responseId int64) error
	DenyResponse(user *model.User, responseId int64) error
	CancelResponse(user *model.User, responseId int64) error
	Find(id int64) (*model.Response, error)
	GetResponse(id int64) (*model.ResponseOutputWithFreel, error)
	GetResponsesOnJobID(jobID int64) ([]model.ExtendResponse, error)
	Update(response *model.Response) error
}

Directories

Path Synopsis
delivery

Jump to

Keyboard shortcuts

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