You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
260 B
13 lines
260 B
|
2 months ago
|
using System.Threading.Tasks;
|
||
|
|
|
||
|
|
namespace MyAvaloniaApp.Services;
|
||
|
|
|
||
|
|
/// <summary>
|
||
|
|
/// API 服务接口
|
||
|
|
/// </summary>
|
||
|
|
public interface IApiService
|
||
|
|
{
|
||
|
|
Task<string> GetApiDataAsync(string endpoint);
|
||
|
|
Task<bool> PostDataAsync(string endpoint, object data);
|
||
|
|
}
|