IFileFolderService.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 IFileFolderService
  13. {
  14. #region 获取数据
  15. /// <summary>
  16. /// 文件夹列表
  17. /// </summary>
  18. /// <param name="userId">用户Id</param>
  19. /// <returns></returns>
  20. IEnumerable<FileFolderEntity> GetList(string userId);
  21. /// <summary>
  22. /// 文件夹实体
  23. /// </summary>
  24. /// <param name="keyValue">主键值</param>
  25. /// <returns></returns>
  26. FileFolderEntity GetEntity(string keyValue);
  27. #endregion
  28. #region 提交数据
  29. /// <summary>
  30. /// 还原文件夹
  31. /// </summary>
  32. /// <param name="keyValue">主键</param>
  33. void RestoreFile(string keyValue);
  34. /// <summary>
  35. /// 删除文件夹
  36. /// </summary>
  37. /// <param name="keyValue">主键</param>
  38. void RemoveForm(string keyValue);
  39. /// <summary>
  40. /// 彻底删除文件夹
  41. /// </summary>
  42. /// <param name="keyValue">主键</param>
  43. void ThoroughRemoveForm(string keyValue);
  44. /// <summary>
  45. /// 保存文件夹表单(新增、修改)
  46. /// </summary>
  47. /// <param name="keyValue">主键值</param>
  48. /// <param name="fileFolderEntity">文件夹实体</param>
  49. /// <returns></returns>
  50. void SaveForm(string keyValue, FileFolderEntity fileFolderEntity);
  51. /// <summary>
  52. /// 共享文件夹
  53. /// </summary>
  54. /// <param name="keyValue">主键</param>
  55. /// <param name="IsShare">是否共享:1-共享 0取消共享</param>
  56. void ShareFolder(string keyValue, int IsShare);
  57. #endregion
  58. }
  59. }