using System.Collections.Generic;
namespace Learun.Application.OA.File.FileInfo
{
///
/// 版 本 Learun-ADMS-Ultimate V7.0.0 数字化智慧校园
/// Copyright (c) 2013-2017
/// 创建人:陈彬彬
/// 日 期:2018.06.20
/// 描 述:文件管理
///
public interface FileInfoIBLL
{
#region 获取数据
///
/// 所有文件(夹)列表
///
/// 文件夹Id
/// 用户Id
///
IEnumerable GetList(string folderId, string userId);
IEnumerable GetList(string folderId, string userId, string queryJson);
IEnumerable GetList(string userId);
IEnumerable GetList();
IEnumerable GetListByJson(string queryJson);
///
/// 文档列表
///
/// 用户Id
///
IEnumerable GetDocumentList(string userId);
///
/// 图片列表
///
/// 用户Id
///
IEnumerable GetImageList(string userId);
///
/// 回收站文件(夹)列表
///
/// 用户Id
///
IEnumerable GetRecycledList(string userId);
///
/// 我的文件(夹)共享列表
///
/// 用户Id
///
IEnumerable GetMyShareList(string userId);
///
/// 他人文件(夹)共享列表
///
/// 用户Id
///
IEnumerable GetOthersShareList(string userId);
///
/// 文件信息实体
///
/// 主键值
///
FileInfoEntity GetEntity(string keyValue);
#endregion
#region 提交数据
///
/// 还原文件
///
/// 主键
void RestoreFile(string keyValue);
///
/// 删除文件信息
///
/// 主键
void RemoveForm(string keyValue);
///
/// 彻底删除文件信息
///
/// 主键
void ThoroughRemoveForm(string keyValue);
///
/// 保存文件信息表单(新增、修改)
///
/// 主键值
/// 文件信息实体
///
void SaveForm(string keyValue, FileInfoEntity fileInfoEntity);
///
/// 共享文件
///
/// 主键
/// 是否共享:1-共享 0取消共享
void ShareFile(string keyValue, int IsShare = 1);
#endregion
}
}