tuonina 6 years ago
parent
commit
bb3ad46ece
1 changed files with 7 additions and 3 deletions
  1. 7 3
      cloud-bus/src/main/java/cn/gygxzc/envir/entity/PushModel.java

+ 7 - 3
cloud-bus/src/main/java/cn/gygxzc/envir/entity/PushModel.java

@@ -6,12 +6,16 @@ import java.util.List;
 /**
  * Created by niantuo on 2018/12/17.
  * 消息推送的模型
+ * @see   PushModel
+ * type 为100 表示群发系统消息。content 应该是富文本。toUserIds 可为null或者是空
  */
 
 public class PushModel {
 
+    public static final int TYPE_SYS=100;//群发的系统消息
+
     private String content;
-    private String type;
+    private int type;
     private String contentType;
     private String urls;
     private String title;
@@ -26,11 +30,11 @@ public class PushModel {
         this.content = content;
     }
 
-    public String getType() {
+    public int getType() {
         return type;
     }
 
-    public void setType(String type) {
+    public void setType(int type) {
         this.type = type;
     }