123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Runtime.Serialization;
- using System.ServiceModel;
- using System.Text;
- using GDNXFD.Data;
- using GDNXFD.Data.Model;
- namespace GDNXFD.WcfService
- {
- // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
- [ServiceContract]
- public interface IAdviceService
- {
- /// <summary>
- /// 获取计算结果
- /// </summary>
- /// <param name="stationId">风场编号</param>
- /// <param name="adviseOperation">动作类型</param>
- /// <returns></returns>
- [OperationContract]
- IList<AdviceModel> GetAdvice(string stationId, OperateStyle? adviseOperation = null);
- /// <summary>
- /// 客户端动作回馈
- /// </summary>
- /// <param name="executeList"></param>
- /// <param name="userId"></param>
- /// <param name="userName"></param>
- /// <returns></returns>
- [OperationContract]
- bool ExecuteAdvice(IList<AdviceModel> executeList, string userId, string userName);
- /// <summary>
- /// 计算结果回放
- /// </summary>
- /// <param name="filter">条件</param>
- /// <param name="pageIndex">页码</param>
- /// <param name="pageSize">页面大小</param>
- /// <param name="total">总数量</param>
- /// <returns></returns>
- [OperationContract]
- IList<AdviceHistoryModel> GetAdviceHistoryPage(string filter, int pageIndex, int pageSize, ref int total);
- /// <summary>
- /// 测试方法
- /// </summary>
- /// <param name="s"></param>
- /// <returns></returns>
- [OperationContract]
- string GetTest(string s);
- }
- }
|