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