using CRM.Core.DTO.Ord; using System.Collections.Generic; using System.IO; using System.ServiceModel; using System.ServiceModel.Web; namespace ZXDService { // 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IOutOrderService”。 [ServiceContract] public interface IOutOrderService { [OperationContract] void DoWork(); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OutOrder/Get?outOderNo={outOderNo}&openPlat={openPlat}&sign={sign}")] JsonResult> GetOrder(string outOderNo, string openPlat, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OutOrder/Notice?orderNo={orderNo}&outOderNo={outOderNo}&payWay={payWay}&merchantOrderNo={merchantOrderNo}&totalPrice={totalPrice}&payName={payName}&payTime={payTime}&sign={sign}")] Stream Notice(string orderNo, string outOderNo, string payWay, string merchantOrderNo, decimal totalPrice, string payName, long payTime, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "RewardNotice/Notice?outOrderNo={outOrderNo}&payWay={payWay}&merchantOrderNo={merchantOrderNo}&totalPrice={totalPrice}&payName={payName}&payTime={payTime}&channel={channel}&sign={sign}")] Stream RewardNotice(string outOrderNo, string payWay, string merchantOrderNo, decimal totalPrice, string payName, long payTime, int channel, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "ComplianceConfirm/Notice?orderNo={orderNo}&outOrderNo={outOrderNo}&confirmTime={confirmTime}&sign={sign}&ip={ip}")] Stream ComplianceNotice(string orderNo, string outOrderNo, string confirmTime, string sign, string ip); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "Compliance/list?channel={channel}&sign={sign}")] JsonResult> ComplianceList(int channel, string sign); [OperationContract] [WebInvoke(Method = "*", ResponseFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "OutOrder/Pay?content={content}&clientid={clientid}&sign={sign}")] Stream Pay(string content, string clientid, string sign); } }