/// <summary> /// 通过Post调用 /// </summary> /// <param name="apiName"></param> /// <param name="argument"></param> /// <returns></returns> public ApiValueResult <string> Post(string apiName, IApiArgument argument) { return(Post(apiName, argument?.ToFormString())); }
/// <summary> /// 通过Post调用 /// </summary> /// <typeparam name="TResult"></typeparam> /// <param name="apiName"></param> /// <param name="argument"></param> /// <returns></returns> public ApiResult <TResult> Post <TResult>(string apiName, IApiArgument argument) where TResult : IApiResultData { return(Post <TResult>(apiName, argument?.ToFormString())); }
/// <summary> /// 通过Get调用 /// </summary> /// <param name="apiName"></param> /// <param name="arguments"></param> /// <returns></returns> public ApiValueResult <string> Get(string apiName, IApiArgument arguments) { return(Get(apiName, arguments?.ToFormString())); }
/// <summary> /// 通过Get调用 /// </summary> /// <typeparam name="TResult"></typeparam> /// <param name="apiName"></param> /// <param name="arguments"></param> /// <returns></returns> public ApiResult <TResult> Get <TResult>(string apiName, IApiArgument arguments) where TResult : IApiResultData { return(Get <TResult>(apiName, arguments?.ToFormString())); }