From 71d0c92a63f1e26c6ba9634413083de1acaf916c Mon Sep 17 00:00:00 2001 From: sunpengfei <i@angelzzz.com> Date: 星期三, 06 八月 2025 11:18:29 +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