using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace Wex.Sdk
{
public partial interface IWexClient
{
///
/// 执行操作呼叫中心请求
///
///
///
///
///
///
Task ExecuteAsync(
TRequest request,
CancellationToken cancellationToken) where TRequest : IWexRequest where TResponse : WexResponse;
Task GetTokenAsync(TokenRequest request, CancellationToken cancellationToken);
}
public class WexResponse
{
public string Msg { get; set; }
public int Code { get; set; }
}
public class WexResponse : WexResponse
{
public TData Data { get; set; }
}
public class WexResponsePage: WexResponse
{
public int Count { get; set; }
}
public interface IWexRequest
{
[JsonIgnore]
string Url { get; }
}
}