平安校园
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.

ConfigInput.cs 1.1 KiB

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