Commit 01a90016 authored by xuwencheng's avatar xuwencheng

upgrade

parent 93ee7d99
...@@ -18,10 +18,8 @@ impl PublishMessage { ...@@ -18,10 +18,8 @@ impl PublishMessage {
Self { id, ty, qos, data } Self { id, ty, qos, data }
} }
pub fn to_push(&self, seller_id: i64, store_id: i64, c_types: &[i32], key: Option<impl AsRef<str>>) -> PushMessage { pub fn to_push(&self, c_types: &[i32], key: Option<impl AsRef<str>>) -> PushMessage {
PushMessage { PushMessage {
seller_id,
store_id,
client_types: c_types.iter().map(|v| *v).collect::<Vec<i32>>(), client_types: c_types.iter().map(|v| *v).collect::<Vec<i32>>(),
business_type: self.ty, business_type: self.ty,
message_id: self.id, message_id: self.id,
...@@ -35,8 +33,6 @@ impl PublishMessage { ...@@ -35,8 +33,6 @@ impl PublishMessage {
#[derive(Debug, Serialize, Deserialize)] #[derive(Debug, Serialize, Deserialize)]
#[serde(rename_all = "camelCase")] #[serde(rename_all = "camelCase")]
pub struct PushMessage { pub struct PushMessage {
seller_id: i64,
store_id: i64,
client_types: Vec<i32>, client_types: Vec<i32>,
business_type: i32, business_type: i32,
message_id: i64, message_id: i64,
......
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