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 }
Click to show internal directories.
Click to hide internal directories.