Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { Create(j *model.Job) error Find(int64) (*model.Job, error) Edit(job *model.Job) error List() ([]model.Job, error) ListOnPattern(string, model.SearchParams) ([]model.Job, error) ListMyJobs(int64) ([]model.Job, error) GetUserIDByJobID(jobID int64) (int64, error) ChangeStatus(jobID int64, status string) error GetTags() ([]string, error) }
type Usecase ¶
type Usecase interface { CreateJob(user *model.User, job *model.Job) error FindJob(id int64) (*model.Job, error) GetAllJobs() ([]model.Job, error) GetMyJobs(int64) ([]model.Job, error) EditJob(user *model.User, job *model.Job, id int64) error MarkAsDeleted(id int64, user *model.User) error PatternSearch(string, model.SearchParams) ([]model.Job, error) GetUserIDByJobID(jobID int64) (int64, error) ChangeStatus(jobID int64, status string, userID int64) error GetTags() ([]string, error) }
Click to show internal directories.
Click to hide internal directories.