平安校园
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

70 lines
1.1 KiB

  1. //
  2. namespace SafeCampus.System;
  3. /// <summary>
  4. /// 配置分页参数
  5. /// </summary>
  6. public class ConfigPageInput : BasePageInput
  7. {
  8. }
  9. /// <summary>
  10. /// 添加配置参数
  11. /// </summary>
  12. public class ConfigAddInput : SysConfig
  13. {
  14. /// <summary>
  15. /// 配置键
  16. /// </summary>
  17. [Required(ErrorMessage = "configKey不能为空")]
  18. public override string ConfigKey { get; set; }
  19. /// <summary>
  20. /// 配置值
  21. /// </summary>
  22. [Required(ErrorMessage = "ConfigValue不能为空")]
  23. public override string ConfigValue { get; set; }
  24. }
  25. /// <summary>
  26. /// 编辑配置参数
  27. /// </summary>
  28. public class ConfigEditInput : ConfigAddInput
  29. {
  30. /// <summary>
  31. /// ID
  32. /// </summary>
  33. [IdNotNull(ErrorMessage = "Id不能为空")]
  34. public override long Id { get; set; }
  35. }
  36. /// <summary>
  37. /// 删除配置参数
  38. /// </summary>
  39. public class ConfigDeleteInput : BaseIdInput
  40. {
  41. }
  42. /// <summary>
  43. /// 批量修改输入参数
  44. /// </summary>
  45. public class ConfigEditBatchInput
  46. {
  47. /// <summary>
  48. /// 分类
  49. /// </summary>
  50. public string CateGory { get; set; }
  51. public List<SysConfig> DevConfigs { get; set; }
  52. }