add YYupload

This commit is contained in:
2020-02-18 06:37:48 +08:00
parent 62ffe47d25
commit 26753657b8
5 changed files with 116 additions and 10 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
using System.Linq;
using System;
using System.Linq;
using Microsoft.AspNetCore.Mvc.Filters;
using YYApi.Communications;
using YYApi.Exceptions;
@@ -8,6 +9,7 @@ namespace YYApi.Attributes
/// <summary>
/// 检测登录中间件
/// </summary>
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Method)]
public class YYAuthAttribute : ActionFilterAttribute
{
private string[] Types { get; }
+3 -1
View File
@@ -1,10 +1,12 @@
using Swashbuckle.AspNetCore.Annotations;
using System;
using Swashbuckle.AspNetCore.Annotations;
namespace YYApi.Attributes
{
/// <summary>
/// 快捷自定义接口文档类
/// </summary>
[AttributeUsage(AttributeTargets.Method | AttributeTargets.Class)]
public class YYDocAttribute : SwaggerOperationAttribute
{
/// <summary>