胖子天骄的MES系统
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.
 
 
 
 

44 lines
1.2 KiB

  1. namespace BPA.MES.Base.Application.Services
  2. {
  3. /// <summary>
  4. /// 名 称 :
  5. /// 创 建 人 :yangxiao
  6. /// 创建时间 : 2023/8/21 10:59:30
  7. /// 描 述 :
  8. /// </summary>
  9. public interface ICRUDService
  10. {
  11. /// <summary>
  12. /// 增加
  13. /// </summary>
  14. /// <returns></returns>
  15. Task<bool> Add<T>(T input);
  16. /// <summary>
  17. /// 移除
  18. /// </summary>
  19. /// <returns></returns>
  20. Task<bool> Del<T>(T input);
  21. /// <summary>
  22. /// 更新
  23. /// </summary>
  24. /// <returns></returns>
  25. Task<bool> Update<T>(T input);
  26. /// <summary>
  27. /// 不分页列表
  28. /// </summary>
  29. /// <returns></returns>
  30. Task<List<DeviceRecipeOutput>> List<T>(T input);
  31. /// <summary>
  32. /// 分页列表
  33. /// </summary>
  34. /// <returns></returns>
  35. Task<SqlSugarPagedList<DeviceRecipeOutput>> PagedList<T>(T input);
  36. /// <summary>
  37. /// 查询单条
  38. /// </summary>
  39. /// <param name="Id"></param>
  40. /// <returns></returns>
  41. Task<DeviceRecipeOutput> Detail(string Id);
  42. }
  43. }