IDKIBOSSPRD.cs 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:IDKIBOSSPRD.cs
  5. * 2.功能描述:系统登录模块服务契约。
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 陈晓野 2014/09/16 1.00 新建
  9. *******************************************************************************/
  10. using System.Data;
  11. using System.ServiceModel;
  12. using Dongke.IBOSS.PRD.WCF.DataModels;
  13. namespace Dongke.IBOSS.PRD.WCF.Contracts
  14. {
  15. /// <summary>
  16. /// 系统登录模块服务契约
  17. /// </summary>
  18. [ServiceContract(ConfigurationName = "DKIBOSSPRDService.IDKIBOSSPRD",
  19. Name = "IDKIBOSSPRD",
  20. Namespace = "Dongke.IBOSS.PRD.WCF.Contracts")]
  21. public interface IDKIBOSSPRD
  22. {
  23. #region 服务连接测试
  24. /// <summary>
  25. /// 服务连接测试
  26. /// </summary>
  27. /// <returns>服务连接测试结果</returns>
  28. [OperationContract]
  29. bool GetServiceState();
  30. #endregion
  31. #region 系统登录、退出、刷新菜单
  32. /// <summary>
  33. /// 系统登录
  34. /// </summary>
  35. /// <param name="requestEntity">系统登录请求</param>
  36. /// <returns>系统登录结果</returns>
  37. [OperationContract]
  38. LoginResultEntity DoLogin(LoginRequestEntity requestEntity);
  39. /// <summary>
  40. /// 刷新菜单
  41. /// </summary>
  42. /// <param name="requestEntity">系统登录请求</param>
  43. /// <returns></returns>
  44. [OperationContract]
  45. LoginResultEntity DoLoginRefresh(LoginRequestEntity requestEntity);
  46. /// 系统登出
  47. /// </summary>
  48. /// <param name="userID">用户ID</param>
  49. /// <returns></returns>
  50. [OperationContract(IsOneWay = true)]
  51. void Logout(int userID);
  52. #endregion
  53. #region 客户端升级
  54. /// <summary>
  55. /// 客户端升级判断
  56. /// </summary>
  57. /// <param name="version">客户端版本</param>
  58. /// <returns>客户端升级判断结果</returns>
  59. [OperationContract]
  60. NeedUpgradeResultEntity IsNeedUpgrade(string version);
  61. /// <summary>
  62. /// 下载更新程序
  63. /// </summary>
  64. /// <returns>更新程序</returns>
  65. [OperationContract]
  66. byte[] DownloadUpgradeFile(string flag = null);
  67. #endregion
  68. }
  69. }