|
|
@@ -1,114 +0,0 @@
|
|
|
-package com.usoftchina.saas.transfers.po;
|
|
|
-
|
|
|
-import java.io.Serializable;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.UUID;
|
|
|
-
|
|
|
-/**
|
|
|
- * @Description 消息内容
|
|
|
- * @Author chenwei
|
|
|
- * @Date 2018/12/27
|
|
|
- */
|
|
|
-public class MessageInfo implements Serializable {
|
|
|
- /**
|
|
|
- * 消息ID
|
|
|
- */
|
|
|
- private String msgId;
|
|
|
- /**
|
|
|
- * 用户ID
|
|
|
- */
|
|
|
- private String userId;
|
|
|
- /**
|
|
|
- * 应用ID
|
|
|
- */
|
|
|
- private String appId;
|
|
|
- /**
|
|
|
- * 业务类型
|
|
|
- */
|
|
|
- private String bizType;
|
|
|
-
|
|
|
- /**
|
|
|
- * 业务单据ID
|
|
|
- */
|
|
|
-
|
|
|
- private String bizId;
|
|
|
- /**
|
|
|
- * 公司id
|
|
|
- * @return
|
|
|
- */
|
|
|
- private Long companyId;
|
|
|
-
|
|
|
- /**
|
|
|
- * 时间戳
|
|
|
- */
|
|
|
- private long timestamp;
|
|
|
-
|
|
|
- public long getTimestamp() {
|
|
|
- return timestamp;
|
|
|
- }
|
|
|
-
|
|
|
- public void setTimestamp(long timestamp) {
|
|
|
- this.timestamp = timestamp;
|
|
|
- }
|
|
|
-
|
|
|
- public String getMsgId() {
|
|
|
- return msgId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setMsgId(String msgId) {
|
|
|
- this.msgId = msgId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getUserId() {
|
|
|
- return userId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setUserId(String userId) {
|
|
|
- this.userId = userId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getAppId() {
|
|
|
- return appId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setAppId(String appId) {
|
|
|
- this.appId = appId;
|
|
|
- }
|
|
|
-
|
|
|
- public String getBizType() {
|
|
|
- return bizType;
|
|
|
- }
|
|
|
-
|
|
|
- public void setBizType(String bizType) {
|
|
|
- this.bizType = bizType;
|
|
|
- }
|
|
|
-
|
|
|
- public String getBizId() {
|
|
|
- return bizId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setBizId(String bizId) {
|
|
|
- this.bizId = bizId;
|
|
|
- }
|
|
|
-
|
|
|
- public MessageInfo(String userId, String bizType, String bizId, Long companyId) {
|
|
|
- this.msgId = UUID.randomUUID().toString();
|
|
|
- this.userId = userId;
|
|
|
- this.appId = "trade";
|
|
|
- this.bizType = bizType;
|
|
|
- this.bizId = bizId;
|
|
|
- this.companyId = companyId;
|
|
|
- this.timestamp = new Date().getTime();
|
|
|
- }
|
|
|
-
|
|
|
- public MessageInfo() {
|
|
|
-
|
|
|
- }
|
|
|
- public Long getCompanyId() {
|
|
|
- return companyId;
|
|
|
- }
|
|
|
-
|
|
|
- public void setCompanyId(Long companyId) {
|
|
|
- this.companyId = companyId;
|
|
|
- }
|
|
|
-}
|