using CRM.Core.DTO.Ord; using System.Collections.Generic; using System.IO; using System.ServiceModel; using System.ServiceModel.Web; namespace ZXDService { // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IOrderPayService”。 [ServiceContract] public interface IOrderPayService { [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OrderPay/SyncPayInfo?content={content}&clientid={clientid}&sign={sign}")] Stream SyncPayInfo(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest, UriTemplate = "gzcrm/OrderPay/AliPayNotify")] Stream AliPayNotify(Stream input); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.WrappedRequest, UriTemplate = "gzcrm/OrderPay/WxPayNotify")] Stream WxPayNotify(); //[OperationContract] //[WebInvoke(Method = "*", // ResponseFormat = WebMessageFormat.Json, // BodyStyle = WebMessageBodyStyle.Bare, // UriTemplate = "OrderPay/Add?content={content}&clientid={clientid}&sign={sign}")] //JsonResult Add(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OrderPay/Add?content={content}&clientid={clientid}&sign={sign}")] JsonResult> Add(string content, string clientid, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OrderPay/Use?content={content}&clientid={clientid}&sign={sign}")] JsonResult> Use(string content, string clientid, string sign); /// /// 获取客户可用金额 /// /// /// /// /// [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OrderPay/Lastprice/Get?content={content}&clientid={clientid}&sign={sign}")] JsonResult LastpriceGet(string content, string clientid, string sign); /// /// 获取客户可用金额 /// /// /// /// /// [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OrderPay/List/Get?content={content}&clientid={clientid}&sign={sign}")] ListResult OrderPayListGet(string content, string clientid, string sign); /// /// 获取客户可用金额 /// /// /// /// /// [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OrderPayUse/List/Get?content={content}&clientid={clientid}&sign={sign}")] ListResult OrderPayUseListGet(string content, string clientid, string sign); } }