From 138943603ac70f25500d8daba79e58c302cbd817 Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期一, 04 八月 2025 13:41:38 +0800
Subject: [PATCH] feat:角色开发

---
 FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs |   50 +++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 47 insertions(+), 3 deletions(-)

diff --git a/FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs b/FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs
index c32b741..45452a1 100644
--- a/FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs
+++ b/FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs
@@ -1,12 +1,56 @@
-锘縰sing System;
+锘縰sing MediatR;
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
 
-namespace FlexJobApi.Core.Models.User.Roles.Commands
+namespace FlexJobApi.Core
 {
-    internal class SaveRoleCommand
+    /// <summary>
+    /// 淇濆瓨瑙掕壊
+    /// </summary>
+    public class SaveRoleCommand : IRequest<Guid>
     {
+        public SaveRoleCommand()
+        {
+            MenuIds = [];
+            Resources = [];
+        }
+
+        /// <summary>
+        /// Id
+        /// </summary>
+        public Guid? Id { get; set; }
+
+        /// <summary>
+        /// 鍚嶇О
+        /// </summary>
+        public string Name { get; set; }
+
+        /// <summary>
+        /// 鐢ㄦ埛绫诲瀷
+        /// </summary>
+        public EnumUserType UserType { get; set; }
+
+        /// <summary>
+        /// 瀹㈡埛绔被鍨�
+        /// </summary>
+        public EnumClientType ClientType { get; set; }
+
+        /// <summary>
+        /// 鏈�浣庣骇鍒�
+        /// </summary>
+        public int MinLevel { get; set; }
+
+        /// <summary>
+        /// 鑿滃崟Id
+        /// </summary>
+        public List<Guid> MenuIds { get; set; }
+
+        /// <summary>
+        /// 璧勬簮
+        /// </summary>
+        public List<GetRoleQueryResultResource> Resources { get; set; }
     }
 }

--
Gitblit v1.9.1