using System.Reflection; namespace Serein.Proto.HttpApi { /// /// 路由信息 /// public class RouterInfo { #if NET6_0_OR_GREATER /// /// 接口类型 /// public ApiType ApiType { get; set; } /// /// 接口URL /// public required string Url { get; set; } /// /// 对应的处理方法 /// public required MethodInfo MethodInfo { get; set; } #else /// /// 接口类型 /// public ApiType ApiType { get; set; } /// /// 接口URL /// public string Url { get; set; } /// /// 对应的处理方法 /// public MethodInfo MethodInfo { get; set; } #endif } }