Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
open-source
/
glsx-smart-message-channel
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit b91a2470
authored
Apr 28, 2021
by
111-PC\111
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
[+]pulsar消费服务
1 parent
74f576fb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
0 deletions
src/main/java/cn/com/glsx/consumer/entity/DeviceEventDetail.java
src/main/java/cn/com/glsx/consumer/entity/DeviceVo.java
src/main/java/cn/com/glsx/consumer/service/DeviceEventService.java
src/main/java/cn/com/glsx/consumer/service/InfoService.java
src/main/java/cn/com/glsx/consumer/entity/DeviceEventDetail.java
View file @
b91a247
...
...
@@ -14,4 +14,5 @@ public class DeviceEventDetail {
private
String
uid
;
private
String
token
;
private
String
name
;
private
String
parentDevId
;
}
src/main/java/cn/com/glsx/consumer/entity/DeviceVo.java
View file @
b91a247
...
...
@@ -17,4 +17,5 @@ public class DeviceVo {
private
String
time
;
private
String
parentId
;
private
String
deviceName
;
private
Integer
type
;
// 1.实体设备 2.虚拟设备
}
src/main/java/cn/com/glsx/consumer/service/DeviceEventService.java
View file @
b91a247
...
...
@@ -56,6 +56,7 @@ public class DeviceEventService {
deviceVo
.
setParentId
(
index
.
getParentId
());
deviceVo
.
setChannel
(
2
);
deviceVo
.
setPlatformProductId
(
index
.
getModel
());
deviceVo
.
setType
(
index
.
getModel
().
contains
(
"virtual"
)?
2
:
1
);
deviceVo
.
setUid
(
index
.
getOpenId
());
deviceVo
.
setDeviceName
(
index
.
getName
());
return
deviceVo
;
...
...
src/main/java/cn/com/glsx/consumer/service/InfoService.java
View file @
b91a247
...
...
@@ -253,6 +253,8 @@ public class InfoService {
deviceVo
.
setUid
(
bizData
.
getUid
());
deviceVo
.
setPlatformProductId
(
deviceEvent
.
getProductKey
());
deviceVo
.
setChannel
(
1
);
deviceVo
.
setParentId
(
bizData
.
getParentDevId
());
deviceVo
.
setType
(
bizData
.
getParentDevId
()==
null
?
2
:
1
);
deviceVo
.
setDeviceId
(
bizData
.
getDevId
());
return
deviceVo
;
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment