qwj
2022-08-22 63f6c5de8832eaabf066fe9f9d492187f04011b7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
    }
}