IFileInfoService.cs 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. using LeaRun.Application.Entity.PublicInfoManage;
  2. using System.Collections.Generic;
  3. namespace LeaRun.Application.IService.PublicInfoManage
  4. {
  5. /// <summary>
  6. /// 版 本 6.1
  7. /// Copyright (c) 2013-2016 上海力软信息技术有限公司
  8. /// 创建人:佘赐雄
  9. /// 日 期:2015.12.15 10:56
  10. /// 描 述:文件信息
  11. /// </summary>
  12. public interface IFileInfoService
  13. {
  14. #region 获取数据
  15. /// <summary>
  16. /// 所有文件(夹)列表
  17. /// </summary>
  18. /// <param name="folderId">文件夹Id</param>
  19. /// <param name="userId">用户Id</param>
  20. /// <returns></returns>
  21. IEnumerable<FileInfoEntity> GetList(string folderId, string userId);
  22. /// <summary>
  23. /// 文档列表
  24. /// </summary>
  25. /// <param name="userId">用户Id</param>
  26. /// <returns></returns>
  27. IEnumerable<FileInfoEntity> GetDocumentList(string userId);
  28. /// <summary>
  29. /// 图片列表
  30. /// </summary>
  31. /// <param name="userId">用户Id</param>
  32. /// <returns></returns>
  33. IEnumerable<FileInfoEntity> GetImageList(string userId);
  34. /// <summary>
  35. /// 回收站文件(夹)列表
  36. /// </summary>
  37. /// <param name="userId">用户Id</param>
  38. /// <returns></returns>
  39. IEnumerable<FileInfoEntity> GetRecycledList(string userId);
  40. /// <summary>
  41. /// 我的文件(夹)共享列表
  42. /// </summary>
  43. /// <param name="userId">用户Id</param>
  44. /// <returns></returns>
  45. IEnumerable<FileInfoEntity> GetMyShareList(string userId);
  46. /// <summary>
  47. /// 他人文件(夹)共享列表
  48. /// </summary>
  49. /// <param name="userId">用户Id</param>
  50. /// <returns></returns>
  51. IEnumerable<FileInfoEntity> GetOthersShareList(string userId);
  52. /// <summary>
  53. /// 文件信息实体
  54. /// </summary>
  55. /// <param name="keyValue">主键值</param>
  56. /// <returns></returns>
  57. FileInfoEntity GetEntity(string keyValue);
  58. #endregion
  59. #region 提交数据
  60. /// <summary>
  61. /// 还原文件
  62. /// </summary>
  63. /// <param name="keyValue">主键</param>
  64. void RestoreFile(string keyValue);
  65. /// <summary>
  66. /// 删除文件信息
  67. /// </summary>
  68. /// <param name="keyValue">主键</param>
  69. void RemoveForm(string keyValue);
  70. /// <summary>
  71. /// 彻底删除文件信息
  72. /// </summary>
  73. /// <param name="keyValue">主键</param>
  74. void ThoroughRemoveForm(string keyValue);
  75. /// <summary>
  76. /// 保存文件信息表单(新增、修改)
  77. /// </summary>
  78. /// <param name="keyValue">主键值</param>
  79. /// <param name="fileInfoEntity">文件信息实体</param>
  80. /// <returns></returns>
  81. void SaveForm(string keyValue, FileInfoEntity fileInfoEntity);
  82. /// <summary>
  83. /// 共享文件
  84. /// </summary>
  85. /// <param name="keyValue">主键</param>
  86. /// <param name="IsShare">是否共享:1-共享 0取消共享</param>
  87. void ShareFile(string keyValue, int IsShare);
  88. #endregion
  89. }
  90. }