diff --git a/.github/workflows/PublishPackages.yaml b/.github/workflows/PublishPackages.yaml
index 46078d2..2274018 100644
--- a/.github/workflows/PublishPackages.yaml
+++ b/.github/workflows/PublishPackages.yaml
@@ -29,5 +29,5 @@ jobs:
- name: Publish to Nuget
uses: brandedoutcast/publish-nuget@v2
with:
- PROJECT_FILE_PATH: 'AuroraNative.csproj'
- NUGET_KEY: ${{secrets.NUGETKEY}}
\ No newline at end of file
+ PROJECT_FILE_PATH: 'AuroraNative/AuroraNative.csproj'
+ NUGET_KEY: ${{secrets.NUGETKEY}}
diff --git a/AuroraNative/Attributes/RequestTypeAttribute.cs b/AuroraNative/Attributes/RequestTypeAttribute.cs
new file mode 100644
index 0000000..aa24979
--- /dev/null
+++ b/AuroraNative/Attributes/RequestTypeAttribute.cs
@@ -0,0 +1,72 @@
+using AuroraNative.Enum;
+using System;
+
+namespace AuroraNative.Attributes
+{
+ ///
+ /// 请求事件 特性
+ ///
+ [AttributeUsage(AttributeTargets.Method)]
+ [PostType(PostType.Request)]
+ public class RequestTypeAttribute : Base, IEquatable
+ {
+ #region --属性--
+
+ ///
+ /// 请求事件 枚举
+ ///
+ public RequestType RequestType { get => Utils.GetEnumByDescription(Type); set => Type = value.ToString(); }
+
+ #endregion
+
+ #region --构造函数--
+
+ ///
+ /// 请求事件类型构造函数,初始化 类的实例
+ ///
+ /// 请求事件类型
+ public RequestTypeAttribute(RequestType RequestType)
+ {
+ this.RequestType = RequestType;
+ }
+
+ #endregion
+
+ #region --公开函数--
+
+ ///
+ ///
+ ///
+ ///
+ public override int GetHashCode()
+ {
+ return base.GetHashCode();
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ public override bool Equals(object obj)
+ {
+ return Equals(obj as MessageTypeAttribute);
+ }
+
+ ///
+ ///
+ ///
+ ///
+ ///
+ public bool Equals(RequestTypeAttribute other)
+ {
+ if (other != null)
+ {
+ return RequestType == other.RequestType;
+ }
+ return false;
+ }
+
+ #endregion
+ }
+}
diff --git a/AuroraNative/AuroraNative.csproj b/AuroraNative/AuroraNative.csproj
index efc13db..d27bc60 100644
--- a/AuroraNative/AuroraNative.csproj
+++ b/AuroraNative/AuroraNative.csproj
@@ -15,13 +15,13 @@
false
false
true
- 1.1.3.0415
- 1.1.3.0415
+ 1.2.0.0503
+ 1.2.0.0503
Icon.png
false
AuroraNative
AuroraNative
- 1.1.3-Beta
+ 1.2.0-Beta
true
true
diff --git a/AuroraNative/AuroraNative.xml b/AuroraNative/AuroraNative.xml
index e348c81..5fa80e0 100644
--- a/AuroraNative/AuroraNative.xml
+++ b/AuroraNative/AuroraNative.xml
@@ -2009,6 +2009,42 @@
上报类型
+
+
+ 请求事件 特性
+
+
+
+
+ 请求事件 枚举
+
+
+
+
+ 请求事件类型构造函数,初始化 类的实例
+
+ 请求事件类型
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
表示日志信息等级的枚举
@@ -2164,6 +2200,21 @@
请求事件
+
+
+ 请求事件 枚举
+
+
+
+
+ 加好友
+
+
+
+
+ 加群
+
+
异常 类 -- 基类
diff --git a/AuroraNative/Enum/RequestType.cs b/AuroraNative/Enum/RequestType.cs
new file mode 100644
index 0000000..b09c372
--- /dev/null
+++ b/AuroraNative/Enum/RequestType.cs
@@ -0,0 +1,17 @@
+namespace AuroraNative.Enum
+{
+ ///
+ /// 请求事件 枚举
+ ///
+ public enum RequestType
+ {
+ ///
+ /// 加好友
+ ///
+ friend = 1,
+ ///
+ /// 加群
+ ///
+ group = 2
+ }
+}
diff --git a/AuroraNative/Utils/Event.cs b/AuroraNative/Utils/Event.cs
index d20ab21..6396a96 100644
--- a/AuroraNative/Utils/Event.cs
+++ b/AuroraNative/Utils/Event.cs
@@ -1,4 +1,5 @@
-using AuroraNative.Enum;
+using AuroraNative.Attributes;
+using AuroraNative.Enum;
using AuroraNative.EventArgs;
using AuroraNative.WebSockets;
using Newtonsoft.Json.Linq;
@@ -60,6 +61,7 @@ namespace AuroraNative
///
/// 好友请求参数
[PostType(PostType.Request)]
+ [RequestType(RequestType.friend)]
public virtual void FriendAddRequest(FriendAddRequsetArgs e) { }
///
@@ -67,6 +69,7 @@ namespace AuroraNative
///
/// 群请求参数
[PostType(PostType.Request)]
+ [RequestType(RequestType.group)]
public virtual void GroupAddRequest(GroupAddRequestArgs e) { }
#endregion