平安校园
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.MajorService;
  2. public interface IMajorService : ITransient
  3. {
  4. /// <summary>
  5. /// 添加
  6. /// </summary>
  7. /// <param name="input">添加参数</param>
  8. /// <returns></returns>
  9. Task<bool> Add(MajorDto input);
  10. /// <summary>
  11. /// 修改
  12. /// </summary>
  13. /// <param name="input">添加参数</param>
  14. /// <returns></returns>
  15. Task<bool> Update(MajorDto input);
  16. /// <summary>
  17. /// 获取详情
  18. /// </summary>
  19. /// <param name="id"></param>
  20. /// <returns></returns>
  21. Task<MajorDto> 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<MajorDto>> GetPageList(MajorSearch search);
  33. /// <summary>
  34. /// 获取列表不分页
  35. /// </summary>
  36. /// <param name="search"></param>
  37. /// <returns></returns>
  38. Task<List<MajorDto>> GetNoPageList(MajorSearch search);
  39. }