ApiSeatAttribute.cs
609 Bytes
using NCC.Dependency;
using System;
namespace Microsoft.AspNetCore.Mvc
{
/// <summary>
/// 接口参数位置设置
/// </summary>
[SuppressSniffer, AttributeUsage(AttributeTargets.Parameter)]
public class ApiSeatAttribute : Attribute
{
/// <summary>
/// 构造函数
/// </summary>
/// <param name="seat"></param>
public ApiSeatAttribute(ApiSeats seat = ApiSeats.ActionEnd)
{
Seat = seat;
}
/// <summary>
/// 参数位置
/// </summary>
public ApiSeats Seat { get; set; }
}
}