|
@@ -1,235 +1,235 @@
|
|
|
-package com.elab.mq.model;
|
|
|
-
|
|
|
-import io.swagger.annotations.ApiModel;
|
|
|
-import io.swagger.annotations.ApiModelProperty;
|
|
|
-
|
|
|
-import javax.persistence.Column;
|
|
|
-import javax.persistence.Id;
|
|
|
-import javax.persistence.Table;
|
|
|
-import java.util.Date;
|
|
|
-
|
|
|
-/**
|
|
|
- * @author liuhx
|
|
|
- * @create 2019/05/16 19:32
|
|
|
- * @email liuhx@elab-plus.com
|
|
|
- **/
|
|
|
-@Table(name = "mq_consumer", catalog = "elab_db")
|
|
|
-@ApiModel(description = "消息队列生产者 实体")
|
|
|
-public class ConsumerEntity {
|
|
|
-
|
|
|
- @Id
|
|
|
- @ApiModelProperty(name = "id", value = "主键")
|
|
|
- private Integer id;
|
|
|
-
|
|
|
- @Column(name = "producer_id")
|
|
|
- @ApiModelProperty(name = "producer_id", value = "生产者id")
|
|
|
- private Integer producerId;
|
|
|
-
|
|
|
- @Column(name = "module_name")
|
|
|
- @ApiModelProperty(name = "moduleName", value = "微服务模块名")
|
|
|
- private String moduleName;
|
|
|
- @Column(name = "msg_id")
|
|
|
- @ApiModelProperty(name = "msgId", value = "MQ的消息编号")
|
|
|
- private String msgId;
|
|
|
-
|
|
|
- @Column(name = "module_method")
|
|
|
- @ApiModelProperty(name = "moduleMethod", value = "模块方法")
|
|
|
- private String moduleMethod;
|
|
|
- @Column(name = "tag")
|
|
|
- @ApiModelProperty(name = "tag", value = "标签 业务区分标识")
|
|
|
- private String tag;
|
|
|
- @Column(name = "cat_id")
|
|
|
- @ApiModelProperty(name = "catId", value = "监控链路编号")
|
|
|
- private String catId;
|
|
|
-
|
|
|
- @Column(name = "house_id")
|
|
|
- @ApiModelProperty(name = "houseId", value = "项目id")
|
|
|
- private Integer houseId;
|
|
|
-
|
|
|
- @Column(name = "topic_id")
|
|
|
- @ApiModelProperty(name = "topicId", value = "队列通道id")
|
|
|
- private String topicId;
|
|
|
-
|
|
|
- @Column(name = "content")
|
|
|
- @ApiModelProperty(name = "content", value = "内容")
|
|
|
- private String content;
|
|
|
-
|
|
|
- @Column(name = "consumer_status")
|
|
|
- @ApiModelProperty(name = "consumerStatus", value = "消费者状态 1成功-1失败")
|
|
|
- private Integer consumerStatus;
|
|
|
-
|
|
|
- @Column(name = "retry_count")
|
|
|
- @ApiModelProperty(name = "retryCount", value = "失败重试次数")
|
|
|
- private Integer retryCount;
|
|
|
-
|
|
|
- /**
|
|
|
- * 状态:1 有效 -1 无效
|
|
|
- */
|
|
|
- @Column(name = "status")
|
|
|
- @ApiModelProperty(name = "status", value = "状态:1 有效 -1 无效")
|
|
|
- private Integer status;
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建时间
|
|
|
- */
|
|
|
- @Column(name = "created")
|
|
|
- @ApiModelProperty(name = "created", value = "创建时间")
|
|
|
- private Date created;
|
|
|
-
|
|
|
- /**
|
|
|
- * 修改时间
|
|
|
- */
|
|
|
- @Column(name = "updated")
|
|
|
- @ApiModelProperty(name = "updated", value = "修改时间")
|
|
|
- private Date updated;
|
|
|
-
|
|
|
- /**
|
|
|
- * 创建者
|
|
|
- */
|
|
|
- @Column(name = "creator")
|
|
|
- @ApiModelProperty(name = "creator", value = "创建者")
|
|
|
- private String creator;
|
|
|
-
|
|
|
- /**
|
|
|
- * 修改者
|
|
|
- */
|
|
|
- @Column(name = "updator")
|
|
|
- @ApiModelProperty(name = "updator", value = "修改者")
|
|
|
- private String updator;
|
|
|
-
|
|
|
- public String getTag() {
|
|
|
- return tag;
|
|
|
- }
|
|
|
-
|
|
|
- public String getCatId() {
|
|
|
- return catId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCatId(String catId) {
|
|
|
- this.catId = catId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTag(String tag) {
|
|
|
- this.tag = tag;
|
|
|
- }
|
|
|
-
|
|
|
- public String getMsgId() {
|
|
|
- return msgId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setMsgId(String msgId) {
|
|
|
- this.msgId = msgId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getModuleMethod() {
|
|
|
- return moduleMethod;
|
|
|
- }
|
|
|
-
|
|
|
- public void setModuleMethod(String moduleMethod) {
|
|
|
- this.moduleMethod = moduleMethod;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getId() {
|
|
|
- return id;
|
|
|
- }
|
|
|
-
|
|
|
- public void setId(Integer id) {
|
|
|
- this.id = id;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getProducerId() {
|
|
|
- return producerId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setProducerId(Integer producerId) {
|
|
|
- this.producerId = producerId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getModuleName() {
|
|
|
- return moduleName;
|
|
|
- }
|
|
|
-
|
|
|
- public void setModuleName(String moduleName) {
|
|
|
- this.moduleName = moduleName;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getHouseId() {
|
|
|
- return houseId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setHouseId(Integer houseId) {
|
|
|
- this.houseId = houseId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getTopicId() {
|
|
|
- return topicId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTopicId(String topicId) {
|
|
|
- this.topicId = topicId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getContent() {
|
|
|
- return content;
|
|
|
- }
|
|
|
-
|
|
|
- public void setContent(String content) {
|
|
|
- this.content = content;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getConsumerStatus() {
|
|
|
- return consumerStatus;
|
|
|
- }
|
|
|
-
|
|
|
- public void setConsumerStatus(Integer consumerStatus) {
|
|
|
- this.consumerStatus = consumerStatus;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getRetryCount() {
|
|
|
- return retryCount;
|
|
|
- }
|
|
|
-
|
|
|
- public void setRetryCount(Integer retryCount) {
|
|
|
- this.retryCount = retryCount;
|
|
|
- }
|
|
|
-
|
|
|
- public Integer getStatus() {
|
|
|
- return status;
|
|
|
- }
|
|
|
-
|
|
|
- public void setStatus(Integer status) {
|
|
|
- this.status = status;
|
|
|
- }
|
|
|
-
|
|
|
- public Date getCreated() {
|
|
|
- return created;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCreated(Date created) {
|
|
|
- this.created = created;
|
|
|
- }
|
|
|
-
|
|
|
- public Date getUpdated() {
|
|
|
- return updated;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUpdated(Date updated) {
|
|
|
- this.updated = updated;
|
|
|
- }
|
|
|
-
|
|
|
- public String getCreator() {
|
|
|
- return creator;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCreator(String creator) {
|
|
|
- this.creator = creator;
|
|
|
- }
|
|
|
-
|
|
|
- public String getUpdator() {
|
|
|
- return updator;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUpdator(String updator) {
|
|
|
- this.updator = updator;
|
|
|
- }
|
|
|
-}
|
|
|
+//package com.elab.mq.model;
|
|
|
+//
|
|
|
+//import io.swagger.annotations.ApiModel;
|
|
|
+//import io.swagger.annotations.ApiModelProperty;
|
|
|
+//
|
|
|
+//import javax.persistence.Column;
|
|
|
+//import javax.persistence.Id;
|
|
|
+//import javax.persistence.Table;
|
|
|
+//import java.util.Date;
|
|
|
+//
|
|
|
+///**
|
|
|
+// * @author liuhx
|
|
|
+// * @create 2019/05/16 19:32
|
|
|
+// * @email liuhx@elab-plus.com
|
|
|
+// **/
|
|
|
+//@Table(name = "mq_consumer", catalog = "elab_db")
|
|
|
+//@ApiModel(description = "消息队列生产者 实体")
|
|
|
+//public class ConsumerEntity {
|
|
|
+//
|
|
|
+// @Id
|
|
|
+// @ApiModelProperty(name = "id", value = "主键")
|
|
|
+// private Integer id;
|
|
|
+//
|
|
|
+// @Column(name = "producer_id")
|
|
|
+// @ApiModelProperty(name = "producer_id", value = "生产者id")
|
|
|
+// private Integer producerId;
|
|
|
+//
|
|
|
+// @Column(name = "module_name")
|
|
|
+// @ApiModelProperty(name = "moduleName", value = "微服务模块名")
|
|
|
+// private String moduleName;
|
|
|
+// @Column(name = "msg_id")
|
|
|
+// @ApiModelProperty(name = "msgId", value = "MQ的消息编号")
|
|
|
+// private String msgId;
|
|
|
+//
|
|
|
+// @Column(name = "module_method")
|
|
|
+// @ApiModelProperty(name = "moduleMethod", value = "模块方法")
|
|
|
+// private String moduleMethod;
|
|
|
+// @Column(name = "tag")
|
|
|
+// @ApiModelProperty(name = "tag", value = "标签 业务区分标识")
|
|
|
+// private String tag;
|
|
|
+// @Column(name = "cat_id")
|
|
|
+// @ApiModelProperty(name = "catId", value = "监控链路编号")
|
|
|
+// private String catId;
|
|
|
+//
|
|
|
+// @Column(name = "house_id")
|
|
|
+// @ApiModelProperty(name = "houseId", value = "项目id")
|
|
|
+// private Integer houseId;
|
|
|
+//
|
|
|
+// @Column(name = "topic_id")
|
|
|
+// @ApiModelProperty(name = "topicId", value = "队列通道id")
|
|
|
+// private String topicId;
|
|
|
+//
|
|
|
+// @Column(name = "content")
|
|
|
+// @ApiModelProperty(name = "content", value = "内容")
|
|
|
+// private String content;
|
|
|
+//
|
|
|
+// @Column(name = "consumer_status")
|
|
|
+// @ApiModelProperty(name = "consumerStatus", value = "消费者状态 1成功-1失败")
|
|
|
+// private Integer consumerStatus;
|
|
|
+//
|
|
|
+// @Column(name = "retry_count")
|
|
|
+// @ApiModelProperty(name = "retryCount", value = "失败重试次数")
|
|
|
+// private Integer retryCount;
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 状态:1 有效 -1 无效
|
|
|
+// */
|
|
|
+// @Column(name = "status")
|
|
|
+// @ApiModelProperty(name = "status", value = "状态:1 有效 -1 无效")
|
|
|
+// private Integer status;
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 创建时间
|
|
|
+// */
|
|
|
+// @Column(name = "created")
|
|
|
+// @ApiModelProperty(name = "created", value = "创建时间")
|
|
|
+// private Date created;
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 修改时间
|
|
|
+// */
|
|
|
+// @Column(name = "updated")
|
|
|
+// @ApiModelProperty(name = "updated", value = "修改时间")
|
|
|
+// private Date updated;
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 创建者
|
|
|
+// */
|
|
|
+// @Column(name = "creator")
|
|
|
+// @ApiModelProperty(name = "creator", value = "创建者")
|
|
|
+// private String creator;
|
|
|
+//
|
|
|
+// /**
|
|
|
+// * 修改者
|
|
|
+// */
|
|
|
+// @Column(name = "updator")
|
|
|
+// @ApiModelProperty(name = "updator", value = "修改者")
|
|
|
+// private String updator;
|
|
|
+//
|
|
|
+// public String getTag() {
|
|
|
+// return tag;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getCatId() {
|
|
|
+// return catId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setCatId(String catId) {
|
|
|
+// this.catId = catId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setTag(String tag) {
|
|
|
+// this.tag = tag;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getMsgId() {
|
|
|
+// return msgId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setMsgId(String msgId) {
|
|
|
+// this.msgId = msgId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getModuleMethod() {
|
|
|
+// return moduleMethod;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setModuleMethod(String moduleMethod) {
|
|
|
+// this.moduleMethod = moduleMethod;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getId() {
|
|
|
+// return id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setId(Integer id) {
|
|
|
+// this.id = id;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getProducerId() {
|
|
|
+// return producerId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setProducerId(Integer producerId) {
|
|
|
+// this.producerId = producerId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getModuleName() {
|
|
|
+// return moduleName;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setModuleName(String moduleName) {
|
|
|
+// this.moduleName = moduleName;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getHouseId() {
|
|
|
+// return houseId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setHouseId(Integer houseId) {
|
|
|
+// this.houseId = houseId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getTopicId() {
|
|
|
+// return topicId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setTopicId(String topicId) {
|
|
|
+// this.topicId = topicId;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getContent() {
|
|
|
+// return content;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setContent(String content) {
|
|
|
+// this.content = content;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getConsumerStatus() {
|
|
|
+// return consumerStatus;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setConsumerStatus(Integer consumerStatus) {
|
|
|
+// this.consumerStatus = consumerStatus;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getRetryCount() {
|
|
|
+// return retryCount;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setRetryCount(Integer retryCount) {
|
|
|
+// this.retryCount = retryCount;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Integer getStatus() {
|
|
|
+// return status;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setStatus(Integer status) {
|
|
|
+// this.status = status;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Date getCreated() {
|
|
|
+// return created;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setCreated(Date created) {
|
|
|
+// this.created = created;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public Date getUpdated() {
|
|
|
+// return updated;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setUpdated(Date updated) {
|
|
|
+// this.updated = updated;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getCreator() {
|
|
|
+// return creator;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setCreator(String creator) {
|
|
|
+// this.creator = creator;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public String getUpdator() {
|
|
|
+// return updator;
|
|
|
+// }
|
|
|
+//
|
|
|
+// public void setUpdator(String updator) {
|
|
|
+// this.updator = updator;
|
|
|
+// }
|
|
|
+//}
|