From 0c4c218f28ab7cc1bb26839c950ad67642c28902 Mon Sep 17 00:00:00 2001 From: xyli Date: Mon, 19 Jun 2023 16:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=B1=BBNotify?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/mpms/model/data/MonitorModel.java | 34 ++++++++++++++++++- 1 file changed, 33 insertions(+), 1 deletion(-) diff --git a/src/main/java/mpms/model/data/MonitorModel.java b/src/main/java/mpms/model/data/MonitorModel.java index 67ddf48..5f21c98 100644 --- a/src/main/java/mpms/model/data/MonitorModel.java +++ b/src/main/java/mpms/model/data/MonitorModel.java @@ -160,4 +160,36 @@ public class MonitorModel extends BaseModel { } } - } + /** + * 通知 + */ + public static class Notify extends BaseJsonModel { + private int style; + private String value; + + public Notify() { + } + + public Notify(NotifyType style, String value) { + this.style = style.getCode(); + this.value = value; + } + + public int getStyle() { + return style; + } + + public void setStyle(int style) { + this.style = style; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + } + + } -- Gitee