Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProjectUsecase ¶
type ProjectUsecase interface { Create(ctx context.Context, request dto.CreateProjectReq) (*domains.Project, error) GetByID(ctx context.Context, id int64) (*domains.Project, error) Fetch(ctx context.Context, req dto.SearchProjectsReq) ([]*domains.Project, int64, error) Update(ctx context.Context, id int64, request dto.UpdateProjectReq) error Delete(ctx context.Context, id int64) error }
ProjectUsecase represent the project's usecase contract
func NewProjectUsecase ¶
func NewProjectUsecase(projectRepo repositories.ProjectRepository) ProjectUsecase
NewProjectUsecase will create new an projectUsecase object representation of ProjectUsecase interface
Click to show internal directories.
Click to hide internal directories.