初始提交
This commit is contained in:
@@ -0,0 +1,36 @@
|
||||
namespace Alipay.AopSdk.Core.Parser
|
||||
{
|
||||
/// <summary>
|
||||
/// AOP API响应解释器接口。响应格式可以是XML, JSON等等。
|
||||
/// </summary>
|
||||
/// <typeparam name="T">领域对象</typeparam>
|
||||
public interface IAopParser<T> where T : AopResponse
|
||||
{
|
||||
/// <summary>
|
||||
/// 把响应字符串解释成相应的领域对象。
|
||||
/// </summary>
|
||||
/// <param name="body">响应字符串</param>
|
||||
/// <returns>领域对象</returns>
|
||||
T Parse(string body, string charset);
|
||||
|
||||
/// <summary>
|
||||
/// 解析签名内容
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="responseBody"></param>
|
||||
/// <returns></returns>
|
||||
SignItem GetSignItem(IAopRequest<T> request, string responseBody);
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 将响应串解密
|
||||
/// </summary>
|
||||
/// <param name="request"></param>
|
||||
/// <param name="body"></param>
|
||||
/// <param name="encryptType"></param>
|
||||
/// <param name="encryptKey"></param>
|
||||
/// <param name="charset"></param>
|
||||
/// <returns></returns>
|
||||
string EncryptSourceData(IAopRequest<T> request, string body, string encryptType, string encryptKey, string charset);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user