From 5d901b5e3f033e8b04e53420d68626cbd87431c8 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期五, 06 五月 2022 10:12:34 +0800 Subject: [PATCH] 使用阿里代码规范。规范代码写法 --- src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEvent.java | 26 ++++++++++++++++++-------- 1 files changed, 18 insertions(+), 8 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEvent.java b/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEvent.java index e077cb9..9aa9f8d 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEvent.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEvent.java @@ -1,9 +1,10 @@ package com.genersoft.iot.vmp.gb28181.event.online; +import com.genersoft.iot.vmp.gb28181.bean.Device; import org.springframework.context.ApplicationEvent; /** - * @Description: 鍦ㄧ嚎浜嬩欢绫� + * @description: 鍦ㄧ嚎浜嬩欢绫� * @author: swwheihei * @date: 2020骞�5鏈�6鏃� 涓婂崍11:32:56 */ @@ -18,18 +19,20 @@ super(source); } - private String deviceId; + private Device device; private String from; - public String getDeviceId() { - return deviceId; + private int expires; + + public Device getDevice() { + return device; } - public void setDeviceId(String deviceId) { - this.deviceId = deviceId; + public void setDevice(Device device) { + this.device = device; } - + public String getFrom() { return from; } @@ -37,5 +40,12 @@ public void setFrom(String from) { this.from = from; } - + + public int getExpires() { + return expires; + } + + public void setExpires(int expires) { + this.expires = expires; + } } -- Gitblit v1.8.0