FlowService.Todo.cs 579 B

12345678910111213141516171819
  1. using System.Collections.Generic;
  2. using System.Threading.Tasks;
  3. using GxPress.Entity.WorkFlow;
  4. namespace GxPress.Service.Implement
  5. {
  6. public partial class FlowService
  7. {
  8. public async Task<int> GetTodoCountAsync(int userId)
  9. {
  10. return await _flowTodoRepository.GetCountByUserIdAsync(userId);
  11. }
  12. public async Task<IEnumerable<FlowTodo>> GetTodoListAsync(int userId, int page, int perPage, int processId)
  13. {
  14. return await _flowTodoRepository.GetListByUserIdAsync(userId, processId, page, perPage);
  15. }
  16. }
  17. }