100 lines
4.0 KiB
C#
100 lines
4.0 KiB
C#
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<string> 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<List<DepositInfoDto>> 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<List<DepositInfoDto>> Use(string content, string clientid, string sign);
|
||
|
||
/// <summary>
|
||
/// 获取客户可用金额
|
||
/// </summary>
|
||
/// <param name="content"></param>
|
||
/// <param name="clientid"></param>
|
||
/// <param name="sign"></param>
|
||
/// <returns></returns>
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "OrderPay/Lastprice/Get?content={content}&clientid={clientid}&sign={sign}")]
|
||
JsonResult<LastPriceRspDto> LastpriceGet(string content, string clientid, string sign);
|
||
|
||
|
||
/// <summary>
|
||
/// 获取客户可用金额
|
||
/// </summary>
|
||
/// <param name="content"></param>
|
||
/// <param name="clientid"></param>
|
||
/// <param name="sign"></param>
|
||
/// <returns></returns>
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "OrderPay/List/Get?content={content}&clientid={clientid}&sign={sign}")]
|
||
ListResult<OrderPayListRspDto, OrderPayListSumRspInfo> OrderPayListGet(string content, string clientid, string sign);
|
||
|
||
|
||
/// <summary>
|
||
/// 获取客户可用金额
|
||
/// </summary>
|
||
/// <param name="content"></param>
|
||
/// <param name="clientid"></param>
|
||
/// <param name="sign"></param>
|
||
/// <returns></returns>
|
||
[OperationContract]
|
||
[WebInvoke(Method = "*",
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
BodyStyle = WebMessageBodyStyle.Bare,
|
||
UriTemplate = "OrderPayUse/List/Get?content={content}&clientid={clientid}&sign={sign}")]
|
||
ListResult<OrderPayUseListRspDto, OrderPayUseListSumRspInfo> OrderPayUseListGet(string content, string clientid, string sign);
|
||
}
|
||
}
|