SysRoleInput.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using YBEE.EQM.Core;
  2. namespace YBEE.EQM.Application
  3. {
  4. /// <summary>
  5. /// 添加角色参数
  6. /// </summary>
  7. public class AddSysRoleInput
  8. {
  9. /// <summary>
  10. /// 角色组ID
  11. /// </summary>
  12. [Required(ErrorMessage = "角色组ID不能为空")]
  13. public int RoleGroupId { get; set; }
  14. /// <summary>
  15. /// 角色名称
  16. /// </summary>
  17. [Required(ErrorMessage = "角色名称不能为空"), StringLength(200, MinimumLength = 1, ErrorMessage = "长度1-200位")]
  18. public string Name { get; set; }
  19. /// <summary>
  20. /// 备注
  21. /// </summary>
  22. public string Remark { get; set; }
  23. }
  24. /// <summary>
  25. /// 更新角色参数
  26. /// </summary>
  27. public class UpdateSysRoleInput : BaseId
  28. {
  29. /// <summary>
  30. /// 角色组ID
  31. /// </summary>
  32. [Required(ErrorMessage = "角色组ID不能为空")]
  33. public int RoleGroupId { get; set; }
  34. /// <summary>
  35. /// 角色名称
  36. /// </summary>
  37. [Required(ErrorMessage = "角色名称不能为空"), StringLength(200, MinimumLength = 1, ErrorMessage = "长度1-200位")]
  38. public string Name { get; set; }
  39. /// <summary>
  40. /// 备注
  41. /// </summary>
  42. public string Remark { get; set; }
  43. }
  44. /// <summary>
  45. /// 删除角色参数
  46. /// </summary>
  47. public class DeleteSysRoleInput : BaseId { }
  48. }