平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

40 lines
1.1 KiB

  1. namespace SafeCampus.Application.Services.Business.DepartmentService;
  2. public interface IDepartmentService : ITransient
  3. {
  4. /// <summary>
  5. /// 添加
  6. /// </summary>
  7. /// <param name="input">添加参数</param>
  8. /// <returns></returns>
  9. Task<bool> Add(DepartmentDto input);
  10. /// <summary>
  11. /// 修改
  12. /// </summary>
  13. /// <param name="input">添加参数</param>
  14. /// <returns></returns>
  15. Task<bool> Update(DepartmentDto input);
  16. /// <summary>
  17. /// 获取详情
  18. /// </summary>
  19. /// <param name="id"></param>
  20. /// <returns></returns>
  21. Task<DepartmentDto> GetInfo(long id);
  22. /// <summary>
  23. /// 删除
  24. /// </summary>
  25. /// <param name="id">id</param>
  26. /// <returns></returns>
  27. Task<bool> Delete(List<long> id);
  28. /// <summary>
  29. /// 获取列表
  30. /// </summary>
  31. /// <returns></returns>
  32. Task<SqlSugarPagedList<DepartmentDto>> GetPageList(DepartmentSearch search);
  33. /// <summary>
  34. /// 不分页获取列表
  35. /// </summary>
  36. /// <param name="search"></param>
  37. /// <returns></returns>
  38. Task<List<DepartmentDto>> GetNoPageList(DepartmentSearch search);
  39. }