ISysOrgService.cs 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application;
  3. /// <summary>
  4. /// 机构信息服务
  5. /// </summary>
  6. public interface ISysOrgService
  7. {
  8. /// <summary>
  9. /// 添加机构
  10. /// </summary>
  11. /// <param name="input"></param>
  12. /// <returns></returns>
  13. Task Add(AddSysOrgInput input);
  14. /// <summary>
  15. /// 更新机构
  16. /// </summary>
  17. /// <param name="input"></param>
  18. /// <returns></returns>
  19. Task Update(UpdateSysOrgInput input);
  20. /// <summary>
  21. /// 删除机构
  22. /// </summary>
  23. /// <param name="input"></param>
  24. /// <returns></returns>
  25. Task Del(BaseId<short> input);
  26. /// <summary>
  27. /// 启用禁用机构
  28. /// </summary>
  29. /// <param name="input"></param>
  30. /// <returns></returns>
  31. Task ChangeStatus(BaseId<short> input);
  32. /// <summary>
  33. /// 根据ID获取机构
  34. /// </summary>
  35. /// <param name="id"></param>
  36. /// <returns></returns>
  37. Task<SysOrgOutput> GetById(short id);
  38. /// <summary>
  39. /// 查询机构列表
  40. /// </summary>
  41. /// <param name="input"></param>
  42. /// <returns></returns>
  43. Task<List<SysOrgLiteOutput>> QueryList(QuerySysOrgInput input);
  44. /// <summary>
  45. /// 分页查询机构列表
  46. /// </summary>
  47. /// <param name="input"></param>
  48. /// <returns></returns>
  49. Task<PageResult<SysOrgOutput>> QueryPageList(SysOrgPageInput input);
  50. /// <summary>
  51. /// 获取全部机构列表
  52. /// </summary>
  53. /// <returns></returns>
  54. Task<List<SysOrgLiteOutput>> GetAllList();
  55. /// <summary>
  56. /// 根据学校ID获取校区列表
  57. /// </summary>
  58. /// <param name="orgId"></param>
  59. /// <returns></returns>
  60. Task<List<SysOrgLiteOutput>> GetOrgBranchByOrgId(short orgId);
  61. }