ApiRequester2.java 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. package com.persagy.ems.pojo.wz;
  2. import java.util.Date;
  3. import com.fasterxml.jackson.annotation.JsonProperty;
  4. import com.persagy.core.annotation.Column;
  5. import com.persagy.core.annotation.Dimension;
  6. import com.persagy.core.annotation.Entity;
  7. import com.persagy.core.annotation.Index;
  8. import com.persagy.core.annotation.Table;
  9. import com.persagy.core.enumeration.Schema;
  10. import com.persagy.core.mvc.pojo.BusinessObject;
  11. @Dimension
  12. @Entity(name = "ApiRequester")
  13. @Table(name = "t_apirequest_1to5", comment = "访问接口api信息", schema = Schema.EMS, indexes = {
  14. @Index(columns = { "c_ip", "c_api_name" })})
  15. public class ApiRequester2 extends BusinessObject {
  16. private static final long serialVersionUID = 2607036763890821951L;
  17. @JsonProperty("ip")
  18. @Column(order = 1, name = "c_ip", length = 100, nullable = false, comment = "ip地址")
  19. private String ip;
  20. @JsonProperty("name")
  21. @Column(order = 2, name = "c_name", length = 100, nullable = true, comment = "名称")
  22. private String name;
  23. @JsonProperty("apiName")
  24. @Column(order = 2, name = "c_api_name", length = 100, nullable = false, comment = "接口名称")
  25. private String apiName;
  26. @Column(order = 3, name = "c_api_num", length = 10, nullable = true, comment = "接口请求总次数")
  27. @JsonProperty("apiNum")
  28. private Integer apiNum;
  29. @JsonProperty("remark")
  30. @Column(order = 4, name = "c_remark", length = 255, nullable = true, comment = "备注信息")
  31. private String remark;
  32. @JsonProperty("dataEndTime")
  33. @Column(order = 5, name = "c_data_end_time", length = 0, nullable = false, comment = "数据统计截止时间")
  34. private Date dataEndTime;
  35. @JsonProperty("insertTime")
  36. @Column(order = 6, name = "c_insert_time", length = 0, nullable = false, comment = "新增时间")
  37. private Date insertTime;
  38. @JsonProperty("updateTime")
  39. @Column(order = 7, name = "c_update_time", length = 0, nullable = false, comment = "更新时间")
  40. private Date updateTime;
  41. public String getIp() {
  42. return ip;
  43. }
  44. public void setIp(String ip) {
  45. this.ip = ip;
  46. }
  47. public String getName() {
  48. return name;
  49. }
  50. public void setName(String name) {
  51. this.name = name;
  52. }
  53. public String getApiName() {
  54. return apiName;
  55. }
  56. public void setApiName(String apiName) {
  57. this.apiName = apiName;
  58. }
  59. public Integer getApiNum() {
  60. return apiNum;
  61. }
  62. public void setApiNum(Integer apiNum) {
  63. this.apiNum = apiNum;
  64. }
  65. public String getRemark() {
  66. return remark;
  67. }
  68. public void setRemark(String remark) {
  69. this.remark = remark;
  70. }
  71. public Date getDataEndTime() {
  72. return dataEndTime;
  73. }
  74. public void setDataEndTime(Date dataEndTime) {
  75. this.dataEndTime = dataEndTime;
  76. }
  77. public Date getInsertTime() {
  78. return insertTime;
  79. }
  80. public void setInsertTime(Date insertTime) {
  81. this.insertTime = insertTime;
  82. }
  83. public Date getUpdateTime() {
  84. return updateTime;
  85. }
  86. public void setUpdateTime(Date updateTime) {
  87. this.updateTime = updateTime;
  88. }
  89. }