NoticeGroupDto.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using System;
  2. using System.ComponentModel.DataAnnotations;
  3. using System.Text.Json.Serialization;
  4. using Model.Base;
  5. namespace Dto.Client
  6. {
  7. public class NoticeGroupDto
  8. {
  9. public string? id { set; get; }
  10. [JsonPropertyName("group_name")]
  11. public string? groupName { set; get; }
  12. [JsonPropertyName("group_remark")]
  13. public string? groupRemark { set; get; }
  14. [JsonPropertyName("group_kind")]
  15. public int groupKind { set; get; }
  16. [JsonPropertyName("group_project")]
  17. public int groupProject { set; get; }
  18. public List<NoticeInfoDto> child { set; get; }
  19. }
  20. public class NoticeInfoDto
  21. {
  22. [JsonPropertyName("api_router")]
  23. public string? apiRouter { set; get; }
  24. [JsonPropertyName("api_port")]
  25. public string? apiPort { set; get; }
  26. [JsonPropertyName("api_host")]
  27. public string? apiHost { set; get; }
  28. [JsonPropertyName("api_key")]
  29. public string? apiKey { set; get; }
  30. [JsonPropertyName("api_name")]
  31. public string? apiName { set; get; }
  32. [JsonPropertyName("api_method")]
  33. public string? apiMethod { set; get; }
  34. [JsonPropertyName("api_path")]
  35. public string? apiPath { set; get; }
  36. [JsonPropertyName("api_en_name")]
  37. public string? apiEnName { set; get; }
  38. }
  39. }