You've already forked FrameTour-BE
taskStatus
This commit is contained in:
@@ -41,16 +41,6 @@ public class TaskServiceImpl implements TaskService {
|
||||
return ApiResponse.success(taskMapper.getById(id));
|
||||
}
|
||||
|
||||
@Override
|
||||
public ApiResponse<Boolean> add(TaskEntity task) {
|
||||
int i = taskMapper.add(task);
|
||||
if (i > 0) {
|
||||
return ApiResponse.success(true);
|
||||
}else {
|
||||
return ApiResponse.fail("添加失败");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public ApiResponse<Boolean> deleteById(Long id) {
|
||||
int i = taskMapper.deleteById(id);
|
||||
|
||||
Reference in New Issue
Block a user