Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
model-entity
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rust common
model-entity
Commits
b17996b1
Commit
b17996b1
authored
Dec 06, 2024
by
xuwencheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
upgrade
parent
7362d411
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
14 deletions
+0
-14
socket.rs
src/event/socket.rs
+0
-2
event.rs
src/socket/event.rs
+0
-12
No files found.
src/event/socket.rs
View file @
b17996b1
...
...
@@ -38,8 +38,6 @@ pub struct SocketEvent {
pub
qos
:
Option
<
i32
>
,
// 设备信息
pub
seller_id
:
Option
<
i64
>
,
pub
store_id
:
Option
<
i64
>
,
pub
device_id
:
Option
<
String
>
,
pub
client_type
:
Option
<
i32
>
,
pub
version
:
Option
<
i32
>
,
...
...
src/socket/event.rs
View file @
b17996b1
...
...
@@ -26,8 +26,6 @@ impl BusinessEvent for SocketEvent {
)
->
SocketEvent
{
let
Header
(
msg_id
,
msg_ty
,
qos
)
=
header
;
SocketEvent
{
seller_id
:
None
,
store_id
:
None
,
device_id
:
None
,
client_type
:
None
,
version
:
None
,
...
...
@@ -61,8 +59,6 @@ impl PublishEvent for SocketEvent {
)
->
SocketEvent
{
let
Header
(
msg_id
,
msg_ty
,
qos
)
=
header
;
SocketEvent
{
seller_id
:
Some
(
info
.seller_id
),
store_id
:
Some
(
info
.store_id
),
device_id
:
Some
(
info
.device_id
.clone
()),
client_type
:
Some
(
info
.client_type
),
version
:
Some
(
info
.version
),
...
...
@@ -81,8 +77,6 @@ impl PublishEvent for SocketEvent {
fn
ack
(
info
:
&
TokenInfo
,
msg_id
:
i64
,
desc
:
impl
AsRef
<
str
>
)
->
SocketEvent
{
SocketEvent
{
seller_id
:
Some
(
info
.seller_id
),
store_id
:
Some
(
info
.store_id
),
device_id
:
Some
(
info
.device_id
.clone
()),
client_type
:
Some
(
info
.client_type
),
version
:
Some
(
info
.version
),
...
...
@@ -114,8 +108,6 @@ impl ConnectEvent for SocketEvent {
"设备断开连接"
};
SocketEvent
{
seller_id
:
Some
(
info
.seller_id
),
store_id
:
Some
(
info
.store_id
),
device_id
:
Some
(
info
.device_id
.clone
()),
client_type
:
Some
(
info
.client_type
),
version
:
Some
(
info
.version
),
...
...
@@ -134,8 +126,6 @@ impl ConnectEvent for SocketEvent {
fn
clean_session
(
info
:
&
TokenInfo
,
extra
:
impl
AsRef
<
str
>
)
->
SocketEvent
{
SocketEvent
{
seller_id
:
Some
(
info
.seller_id
),
store_id
:
Some
(
info
.store_id
),
device_id
:
Some
(
info
.device_id
.clone
()),
client_type
:
Some
(
info
.client_type
),
version
:
Some
(
info
.version
),
...
...
@@ -176,8 +166,6 @@ impl ConsumeEvent for SocketEvent {
};
let
Header
(
msg_id
,
msg_ty
,
qos
)
=
header
;
SocketEvent
{
seller_id
:
Some
(
info
.seller_id
),
store_id
:
Some
(
info
.store_id
),
device_id
:
Some
(
info
.device_id
.clone
()),
client_type
:
Some
(
info
.client_type
),
version
:
Some
(
info
.version
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment