[xingyu.guo] feat: 为【添加新任务】增加任务名是否重复的校验
This commit is contained in:
@@ -6,6 +6,7 @@ import com.guo.learningprogresstracker.dto.TaskInfo;
|
||||
import com.guo.learningprogresstracker.dto.request.TaskRequest;
|
||||
import com.guo.learningprogresstracker.dto.response.TaskInfoResponse;
|
||||
import com.guo.learningprogresstracker.entity.TaskEntity;
|
||||
import com.guo.learningprogresstracker.exception.ErrorParameterException;
|
||||
|
||||
import java.rmi.ServerException;
|
||||
|
||||
@@ -18,7 +19,7 @@ public interface TasksService extends IService<TaskEntity> {
|
||||
|
||||
Page<TaskInfo> taskList(Integer pageNum, Integer pageSize);
|
||||
|
||||
String addTask(TaskRequest taskRequest);
|
||||
String addTask(TaskRequest taskRequest) throws ErrorParameterException;
|
||||
|
||||
TaskInfoResponse getTask(String taskId);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user