init
This commit is contained in:
42
DouyinApi.IServices/IPayServices.cs
Normal file
42
DouyinApi.IServices/IPayServices.cs
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
using DouyinApi.IServices.BASE;
|
||||
using DouyinApi.Model;
|
||||
using DouyinApi.Model.ViewModels;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace DouyinApi.IServices
|
||||
{
|
||||
/// <summary>
|
||||
/// IPayServices
|
||||
/// </summary>
|
||||
public interface IPayServices : IBaseServices<RootEntityTkey<int>>
|
||||
{
|
||||
/// <summary>
|
||||
/// 被扫支付
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task<MessageModel<PayReturnResultModel>> Pay(PayNeedModel payModel);
|
||||
/// <summary>
|
||||
/// 退款
|
||||
/// </summary>
|
||||
/// <param name="payModel"></param>
|
||||
/// <returns></returns>
|
||||
Task<MessageModel<PayRefundReturnResultModel>> PayRefund(PayRefundNeedModel payModel);
|
||||
/// <summary>
|
||||
/// 轮询查询
|
||||
/// </summary>
|
||||
/// <param name="payModel"></param>
|
||||
/// <param name="times">轮询次数</param>
|
||||
/// <returns></returns>
|
||||
Task<MessageModel<PayReturnResultModel>> PayCheck(PayNeedModel payModel,int times);
|
||||
/// <summary>
|
||||
/// 验证签名
|
||||
/// </summary>
|
||||
/// <param name="strSrc">参数</param>
|
||||
/// <param name="sign">签名</param>
|
||||
/// <param name="pubKey">公钥</param>
|
||||
/// <returns></returns>
|
||||
bool NotifyCheck(string strSrc, string sign, string pubKey);
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user