From b18846524043a69af625551a392301f25901e1be Mon Sep 17 00:00:00 2001 From: Stratos Date: Sun, 23 Oct 2022 13:26:54 +0800 Subject: [PATCH] Obsolete info for ResponseDataAttribute --- .../Attributes/ResponseDataAttribute.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/Cuture.AspNetCore.ResponseAutoWrapper/Attributes/ResponseDataAttribute.cs diff --git a/src/Cuture.AspNetCore.ResponseAutoWrapper/Attributes/ResponseDataAttribute.cs b/src/Cuture.AspNetCore.ResponseAutoWrapper/Attributes/ResponseDataAttribute.cs new file mode 100644 index 0000000..0d087e4 --- /dev/null +++ b/src/Cuture.AspNetCore.ResponseAutoWrapper/Attributes/ResponseDataAttribute.cs @@ -0,0 +1,12 @@ +using System; + +namespace Cuture.AspNetCore.ResponseAutoWrapper; + +/// +/// +/// +[AttributeUsage(AttributeTargets.GenericParameter | AttributeTargets.Field | AttributeTargets.Property, Inherited = false, AllowMultiple = false)] +[Obsolete("此特性已移除,现在按约定进行配置,约定Data对应的泛型参数为最后一个泛型参数。", true)] +public sealed class ResponseDataAttribute : Attribute +{ +}