Added AddTask and DeleteTask. Without db tests
This commit is contained in:
parent
568ccea09a
commit
4d40159772
6 changed files with 59 additions and 0 deletions
|
@ -29,3 +29,11 @@ func (uc *ContestUseCase) ReadContestById(ctx context.Context, id int32) (*model
|
|||
func (uc *ContestUseCase) DeleteContest(ctx context.Context, id int32) error {
|
||||
return uc.contestRepo.DeleteContest(ctx, id)
|
||||
}
|
||||
|
||||
func (uc *ContestUseCase) AddTask(ctx context.Context, contestId int32, taskId int32) (id int32, err error) {
|
||||
return uc.contestRepo.AddTask(ctx, contestId, taskId)
|
||||
}
|
||||
|
||||
func (uc *ContestUseCase) DeleteTask(ctx context.Context, taskId int32) error {
|
||||
return uc.contestRepo.DeleteTask(ctx, taskId)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue