From 100b5ecb418bf6839e47b428e346ad5f6e778d1b Mon Sep 17 00:00:00 2001
From: sunpengfei <i@angelzzz.com>
Date: 星期二, 05 八月 2025 15:04:41 +0800
Subject: [PATCH] feat:角色

---
 FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs |   61 +++++++++++++++++++++++++++++-
 1 files changed, 58 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..3bfb217 100644
--- a/FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs
+++ b/FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs
@@ -1,12 +1,67 @@
-锘縰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>
+    [Resource([EnumResourceController.Role])]
+    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>
+        /// 鏁版嵁鏉冮檺
+        /// </summary>
+        public EnumRoleWebApiDataPower DataPower { get; set; }
+
+        /// <summary>
+        /// 澶囨敞
+        /// </summary>
+        public string Remark { get; set; }
+
+        /// <summary>
+        /// 鑿滃崟Id
+        /// </summary>
+        public List<Guid> MenuIds { get; set; }
+
+        /// <summary>
+        /// 璧勬簮
+        /// </summary>
+        public List<GetRoleQueryResultResource> Resources { get; set; }
     }
 }

--
Gitblit v1.9.1