using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace CoreCms.Net.IServices
|
{
|
/// <summary>
|
/// api请求接口
|
/// </summary>
|
public interface IApiService
|
{
|
Task<T> GetAsync<T>(string endpoint);
|
Task PostAsync<T>(string endpoint, T data);
|
Task PutAsync<T>(string endpoint, T data);
|
Task DeleteAsync(string endpoint);
|
}
|
}
|