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