From b9b4c926a7898d8b7d657e75ec83064390a5f9fb Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期一, 04 八月 2025 17:35:54 +0800 Subject: [PATCH] pref:childrens命名修改 --- 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