Commit 38ae9e7e authored by xuwencheng's avatar xuwencheng

consume

parent c36199a4
...@@ -17,4 +17,17 @@ impl PublishMessage { ...@@ -17,4 +17,17 @@ impl PublishMessage {
pub fn new(id: i64, ty: i32, qos: Qos, data: Option<String>) -> Self { pub fn new(id: i64, ty: i32, qos: Qos, data: Option<String>) -> Self {
Self { id, ty, qos, data } Self { id, ty, qos, data }
} }
}
#[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")]
pub struct PushMessage {
seller_id: i64,
store_id: i64,
client_types: Vec<i32>,
business_type: i32,
message_id: i64,
key: Option<String>,
qos: Qos,
payload: Option<String>,
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment