diff --git a/src/main/java/com/ifish7/mq/business/device/entity/TblLoginRecord.java b/src/main/java/com/ifish7/mq/business/device/entity/TblLoginRecord.java
new file mode 100644
index 0000000..c6f45e9
--- /dev/null
+++ b/src/main/java/com/ifish7/mq/business/device/entity/TblLoginRecord.java
@@ -0,0 +1,32 @@
+package com.ifish7.mq.business.device.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import lombok.Data;
+import lombok.experimental.Accessors;
+
+import java.time.LocalDateTime;
+
+/**
+ *
+ *
+ *
+ *
+ * @author yan.y
+ * @since 2019-04-09
+ */
+@Data
+@Accessors(chain = true)
+public class TblLoginRecord {
+
+ private static final long serialVersionUID = 1L;
+
+ @TableId(value = "record_id", type = IdType.AUTO)
+ private Integer recordId;
+
+ private String macAddress;
+
+ private LocalDateTime loginTime;
+
+
+}
diff --git a/src/main/java/com/ifish7/mq/business/device/mapper/TblLoginRecordMapper.java b/src/main/java/com/ifish7/mq/business/device/mapper/TblLoginRecordMapper.java
new file mode 100644
index 0000000..4363146
--- /dev/null
+++ b/src/main/java/com/ifish7/mq/business/device/mapper/TblLoginRecordMapper.java
@@ -0,0 +1,16 @@
+package com.ifish7.mq.business.device.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.ifish7.mq.business.device.entity.TblLoginRecord;
+
+/**
+ *
+ * Mapper 接口
+ *
+ *
+ * @author yan.y
+ * @since 2019-04-09
+ */
+public interface TblLoginRecordMapper extends BaseMapper {
+
+}
diff --git a/src/main/java/com/ifish7/mq/business/device/service/ITblLoginRecordService.java b/src/main/java/com/ifish7/mq/business/device/service/ITblLoginRecordService.java
new file mode 100644
index 0000000..51e53dc
--- /dev/null
+++ b/src/main/java/com/ifish7/mq/business/device/service/ITblLoginRecordService.java
@@ -0,0 +1,16 @@
+package com.ifish7.mq.business.device.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.ifish7.mq.business.device.entity.TblLoginRecord;
+
+/**
+ *
+ * 服务类
+ *
+ *
+ * @author yan.y
+ * @since 2019-04-09
+ */
+public interface ITblLoginRecordService extends IService {
+
+}
diff --git a/src/main/java/com/ifish7/mq/business/device/service/impl/TblLoginRecordServiceImpl.java b/src/main/java/com/ifish7/mq/business/device/service/impl/TblLoginRecordServiceImpl.java
new file mode 100644
index 0000000..b29d6c2
--- /dev/null
+++ b/src/main/java/com/ifish7/mq/business/device/service/impl/TblLoginRecordServiceImpl.java
@@ -0,0 +1,20 @@
+package com.ifish7.mq.business.device.service.impl;
+
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.ifish7.mq.business.device.entity.TblLoginRecord;
+import com.ifish7.mq.business.device.mapper.TblLoginRecordMapper;
+import com.ifish7.mq.business.device.service.ITblLoginRecordService;
+import org.springframework.stereotype.Service;
+
+/**
+ *
+ * 服务实现类
+ *
+ *
+ * @author yan.y
+ * @since 2019-04-09
+ */
+@Service
+public class TblLoginRecordServiceImpl extends ServiceImpl implements ITblLoginRecordService {
+
+}
diff --git a/src/main/java/com/ifish7/mq/execption/EventExecption.java b/src/main/java/com/ifish7/mq/execption/EventExecption.java
new file mode 100644
index 0000000..49fde0f
--- /dev/null
+++ b/src/main/java/com/ifish7/mq/execption/EventExecption.java
@@ -0,0 +1,29 @@
+package com.ifish7.mq.execption;
+
+/**
+ * @author: yan.y
+ * @Description:
+ * @Date: Created in 14:03 2019-04-10
+ * @Modified by:
+ */
+public class EventExecption extends Exception {
+ public EventExecption() {
+ super();
+ }
+
+ public EventExecption(String message) {
+ super(message);
+ }
+
+ public EventExecption(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public EventExecption(Throwable cause) {
+ super(cause);
+ }
+
+ protected EventExecption(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
+ super(message, cause, enableSuppression, writableStackTrace);
+ }
+}
diff --git a/src/main/java/com/ifish7/mq/queues/event/PushNotifcationEvent.java b/src/main/java/com/ifish7/mq/queues/event/PushNotifcationEvent.java
new file mode 100644
index 0000000..de9a7fb
--- /dev/null
+++ b/src/main/java/com/ifish7/mq/queues/event/PushNotifcationEvent.java
@@ -0,0 +1,11 @@
+package com.ifish7.mq.queues.event;
+
+/**
+ * @author: yan.y
+ * @Description: 消息推送事件
+ * @Date: Created in 15:23 2019-04-10
+ * @Modified by:
+ */
+public class PushNotifcationEvent {
+
+}
diff --git a/src/main/resources/mapper/device/TblLoginRecordMapper.xml b/src/main/resources/mapper/device/TblLoginRecordMapper.xml
new file mode 100644
index 0000000..43aba76
--- /dev/null
+++ b/src/main/resources/mapper/device/TblLoginRecordMapper.xml
@@ -0,0 +1,5 @@
+
+
+
+
+