ApiInfo.java 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. package cn.com.qmth.scancentral.support;
  2. import java.io.Serializable;
  3. /**
  4. * 接口
  5. *
  6. */
  7. public class ApiInfo implements Serializable {
  8. private static final long serialVersionUID = 1553810211239843543L;
  9. /**
  10. * ID
  11. */
  12. private Integer id;
  13. /**
  14. * 映射
  15. */
  16. private String mapping;
  17. /**
  18. * mapping路径
  19. */
  20. private String requestPath;
  21. /**
  22. * http方法
  23. */
  24. private String httpMethod;
  25. /**
  26. * 接口描述
  27. */
  28. private String description;
  29. /**
  30. * 请求处理类
  31. */
  32. private transient Class<?> beanType;
  33. /**
  34. * 接口日志忽略堆栈
  35. */
  36. private boolean withoutStackTrace;
  37. /**
  38. * 接口裸奔
  39. */
  40. private boolean naked;
  41. public Integer getId() {
  42. return id;
  43. }
  44. public void setId(Integer id) {
  45. this.id = id;
  46. }
  47. public String getMapping() {
  48. return mapping;
  49. }
  50. public void setMapping(String mapping) {
  51. this.mapping = mapping;
  52. }
  53. public String getRequestPath() {
  54. return requestPath;
  55. }
  56. public void setRequestPath(String requestPath) {
  57. this.requestPath = requestPath;
  58. }
  59. public String getHttpMethod() {
  60. return httpMethod;
  61. }
  62. public void setHttpMethod(String httpMethod) {
  63. this.httpMethod = httpMethod;
  64. }
  65. public String getDescription() {
  66. return description;
  67. }
  68. public void setDescription(String description) {
  69. this.description = description;
  70. }
  71. public Class<?> getBeanType() {
  72. return beanType;
  73. }
  74. public void setBeanType(Class<?> beanType) {
  75. this.beanType = beanType;
  76. }
  77. public boolean isWithoutStackTrace() {
  78. return withoutStackTrace;
  79. }
  80. public void setWithoutStackTrace(boolean withoutStackTrace) {
  81. this.withoutStackTrace = withoutStackTrace;
  82. }
  83. public boolean isNaked() {
  84. return naked;
  85. }
  86. public void setNaked(boolean naked) {
  87. this.naked = naked;
  88. }
  89. }