/// <summary> /// 通过Post调用 /// </summary> /// <param name="apiName"></param> /// <param name="argument"></param> /// <returns></returns> public ApiValueResult Post(string apiName, IWebApiArgument 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, IWebApiArgument argument) { return(Post <TResult>(apiName, argument?.ToFormString())); }
/// <summary> /// 通过Get调用 /// </summary> /// <param name="apiName"></param> /// <param name="arguments"></param> /// <returns></returns> public ApiValueResult Get(string apiName, IWebApiArgument 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, IWebApiArgument arguments) { return(Get <TResult>(apiName, arguments?.ToFormString())); }