mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-23 23:51:18 +08:00
43 lines
1.3 KiB
Java
43 lines
1.3 KiB
Java
package com.jsowell.system.service;
|
|
|
|
import com.jsowell.system.domain.SysTodoTask;
|
|
import com.jsowell.system.domain.dto.TodoTaskCreateCommand;
|
|
import com.jsowell.system.domain.dto.TodoTaskQuery;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 统一待办任务服务。
|
|
*
|
|
* @author jsowell
|
|
*/
|
|
public interface TodoTaskService {
|
|
SysTodoTask createTask(TodoTaskCreateCommand command);
|
|
|
|
SysTodoTask getForAssignee(Long todoId, Long assigneeUserId);
|
|
|
|
List<SysTodoTask> listForAssignee(TodoTaskQuery query, Long assigneeUserId);
|
|
|
|
List<SysTodoTask> homeList(Long assigneeUserId, Integer limit);
|
|
|
|
int countActive(Long assigneeUserId);
|
|
|
|
int countUnread(Long assigneeUserId);
|
|
|
|
boolean markRead(Long todoId, Long assigneeUserId, String operatorName);
|
|
|
|
int markAllRead(Long assigneeUserId, String operatorName);
|
|
|
|
boolean complete(Long todoId, Long assigneeUserId, String operatorName);
|
|
|
|
int completeByBusiness(String businessType, String businessId, Long assigneeUserId,
|
|
Long operatorId, String operatorName);
|
|
|
|
boolean cancelForAssignee(Long todoId, Long assigneeUserId, String operatorName, String reason);
|
|
|
|
boolean cancel(Long todoId, Long operatorId, String operatorName, String reason);
|
|
|
|
int cancelByBusiness(String businessType, String businessId, Long assigneeUserId,
|
|
String operatorName, String reason);
|
|
}
|