RoadFlow2.1 临时演示

IAppLibrary.cs 1.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. using System;
  2. using System.Collections.Generic;
  3. namespace RoadFlow.Data.Interface
  4. {
  5. public interface IAppLibrary
  6. {
  7. /// <summary>
  8. /// 新增
  9. /// </summary>
  10. int Add(RoadFlow.Data.Model.AppLibrary model);
  11. /// <summary>
  12. /// 更新
  13. /// </summary>
  14. int Update(RoadFlow.Data.Model.AppLibrary model);
  15. /// <summary>
  16. /// 查询所有记录
  17. /// </summary>
  18. List<RoadFlow.Data.Model.AppLibrary> GetAll();
  19. /// <summary>
  20. /// 查询单条记录
  21. /// </summary>
  22. Model.AppLibrary Get(Guid id);
  23. /// <summary>
  24. /// 删除
  25. /// </summary>
  26. int Delete(Guid id);
  27. /// <summary>
  28. /// 查询记录条数
  29. /// </summary>
  30. long GetCount();
  31. /// <summary>
  32. /// 得到一页数据
  33. /// </summary>
  34. /// <param name="pager"></param>
  35. /// <param name="query"></param>
  36. /// <param name="order"></param>
  37. /// <param name="size"></param>
  38. /// <param name="numbe"></param>
  39. /// <param name="title"></param>
  40. /// <param name="type"></param>
  41. /// <param name="address"></param>
  42. /// <returns></returns>
  43. List<RoadFlow.Data.Model.AppLibrary> GetPagerData(out string pager, string query = "", string order = "Type,Title", int size = 15, int number = 1, string title = "", string type = "", string address = "");
  44. /// <summary>
  45. /// 查询一个类别下所有记录
  46. /// </summary>
  47. List<RoadFlow.Data.Model.AppLibrary> GetAllByType(string type);
  48. /// <summary>
  49. /// 删除记录
  50. /// </summary>
  51. int Delete(string[] idArray);
  52. /// <summary>
  53. /// 根据代码查询一条记录
  54. /// </summary>
  55. RoadFlow.Data.Model.AppLibrary GetByCode(string code);
  56. }
  57. }