IAdviceService.cs 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.ServiceModel;
  6. using System.Text;
  7. using GDNXFD.Data;
  8. using GDNXFD.Data.Model;
  9. namespace GDNXFD.WcfService
  10. {
  11. // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
  12. [ServiceContract]
  13. public interface IAdviceService
  14. {
  15. /// <summary>
  16. /// 获取计算结果
  17. /// </summary>
  18. /// <param name="stationId">风场编号</param>
  19. /// <param name="adviseOperation">动作类型</param>
  20. /// <returns></returns>
  21. [OperationContract]
  22. IList<AdviceModel> GetAdvice(string stationId, OperateStyle? adviseOperation = null);
  23. /// <summary>
  24. /// 客户端动作回馈
  25. /// </summary>
  26. /// <param name="executeList"></param>
  27. /// <param name="userId"></param>
  28. /// <param name="userName"></param>
  29. /// <returns></returns>
  30. [OperationContract]
  31. bool ExecuteAdvice(IList<AdviceModel> executeList, string userId, string userName);
  32. /// <summary>
  33. /// 计算结果回放
  34. /// </summary>
  35. /// <param name="filter">条件</param>
  36. /// <param name="pageIndex">页码</param>
  37. /// <param name="pageSize">页面大小</param>
  38. /// <param name="total">总数量</param>
  39. /// <returns></returns>
  40. [OperationContract]
  41. IList<AdviceHistoryModel> GetAdviceHistoryPage(string filter, int pageIndex, int pageSize, ref int total);
  42. /// <summary>
  43. /// 测试方法
  44. /// </summary>
  45. /// <param name="s"></param>
  46. /// <returns></returns>
  47. [OperationContract]
  48. string GetTest(string s);
  49. }
  50. }