namespace XFEExtension.NetCore.ServerInteractive.Attributes;
///
/// 响应特性,用于标记IStandardRequestService中解析响应的方法
///
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true, Inherited = false)]
public class ResponseAttribute : Attribute
{
///
/// 响应路径
///
public string Path { get; }
///
/// 响应名称(可选),使用请求器时可通过名称代替路径进行请求
///
public string? Name { get; set; }
///
/// 创建响应特性
///
/// 响应路径(例如:user/login)
public ResponseAttribute(string path)
{
Path = path;
}
}