MethodEntity.cs 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System.Collections.Generic;
  2. namespace WingCloudServer.GeneralDocTools.Model
  3. {
  4. public class MethodBasicEntity
  5. {
  6. public string MethodNameSpace { get; set; } = string.Empty;
  7. public string InterfaceName { get; set; } = string.Empty;
  8. public string MethodName { get; set; } = string.Empty;
  9. public string Summary { get; set; } = string.Empty;
  10. public string Returns { get; set; } = string.Empty;
  11. public string Value { get; set; } = string.Empty;
  12. public string ReturnsTypeFullName { get; set; } = string.Empty;
  13. public string ParamName { get; set; } = string.Empty;
  14. public string ParamTypeFullName { get; set; } = string.Empty;
  15. public string ParamText { get; set; } = string.Empty;
  16. public string SubmitType { get; set; } = "POST";
  17. public string ErrorCodes { get; set; } = string.Empty;
  18. public List<ParamPropertyEntity> RequestList = new List<ParamPropertyEntity>();
  19. public List<ParamPropertyEntity> ResponseList = new List<ParamPropertyEntity>();
  20. }
  21. public class ParamPropertyEntity
  22. {
  23. public string Desc { get; set; } = string.Empty;
  24. public string DefaultValue { get; set; } = string.Empty;
  25. public string Name { get; set; } = string.Empty;
  26. public string TypeFullName { get; set; } = string.Empty;
  27. /// <summary>
  28. /// 针对 TypeFullName 为泛型时,T的类型
  29. /// </summary>
  30. public string GenericityType { get; set; } = string.Empty;
  31. /// <summary>
  32. /// 是否必填,默认必填1-必填,0-非必填
  33. /// </summary>
  34. public string IsNotNull { get; set; } = "1";
  35. //本身还有子项
  36. public List<ParamPropertyEntity> ParamPropertyList = new List<ParamPropertyEntity>();
  37. }
  38. }