using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.ServiceModel;
|
using System.IO;
|
|
namespace CY_DocumentFileWCFService
|
{
|
[ServiceContract]
|
public interface IFileService
|
{
|
#region 上传下载文件接口
|
/// <summary>
|
/// 上传接口
|
/// </summary>
|
/// <param name="request"></param>
|
[OperationContract(IsOneWay = true)]
|
void UploadFile(FileData request);
|
|
/// <summary>
|
/// 下载接口
|
/// </summary>
|
/// <param name="url"></param>
|
/// <returns></returns>
|
[OperationContract]
|
Stream DownLoadFile(string filePath, long offset = 0, long count = 0);
|
|
[OperationContract]
|
int GetUploadFileInfo(string id);
|
#endregion
|
}
|
}
|