using EntrustSettle.Model; using System.Collections.Generic; using System.Threading.Tasks; namespace EntrustSettle.Common.Http.HttpPolly { public interface IHttpPollyHelper { Task PostAsync(HttpEnum httpEnum, string url, R request, Dictionary headers = null); Task PostAsync(HttpEnum httpEnum, string url, string request, Dictionary headers = null); Task PostAsync(HttpEnum httpEnum, string url, string request, Dictionary headers = null); Task PostAsync(HttpEnum httpEnum, string url, R request, Dictionary headers = null); Task GetAsync(HttpEnum httpEnum, string url, Dictionary queryParams = null, Dictionary headers = null); Task GetAsync(HttpEnum httpEnum, string url, Dictionary queryParams = null, Dictionary headers = null); Task PutAsync(HttpEnum httpEnum, string url, R request, Dictionary headers = null); Task PutAsync(HttpEnum httpEnum, string url, string request, Dictionary headers = null); Task DeleteAsync(HttpEnum httpEnum, string url, Dictionary headers = null); } }