using System;
using System.Collections.Generic;
using System.Threading.Tasks;
namespace Avalonia_Services.Core
{
///
/// 单个端点定义。
///
public class ServiceEndpoint
{
/// 路由路径,如 "api/wData"
public string Pattern { get; init; } = string.Empty;
/// HTTP 方法(GET/POST/PUT/DELETE)
public string HttpMethod { get; init; } = "GET";
/// 端点名称(用于 OpenAPI / 日志)
public string? Name { get; set; }
/// 端点处理器
public Func> Handler { get; init; } = _ => Task.FromResult