From 356c47fb0ea1a642784e85c82833141d065bc4bc Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期二, 05 八月 2025 09:22:25 +0800 Subject: [PATCH] feat:动态控制器开发 --- FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs | 51 ++++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 48 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..5b498c5 100644 --- a/FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs +++ b/FlexJobApi.Core/Models/User/Roles/Commands/SaveRoleCommand.cs @@ -1,12 +1,57 @@ -锘縰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> + /// 鑿滃崟Id + /// </summary> + public List<Guid> MenuIds { get; set; } + + /// <summary> + /// 璧勬簮 + /// </summary> + public List<GetRoleQueryResultResource> Resources { get; set; } } } -- Gitblit v1.9.1