Commit 132a518c authored by xuwencheng's avatar xuwencheng

login device

parent 076f73c7
...@@ -16,6 +16,8 @@ pub struct LoginInfo { ...@@ -16,6 +16,8 @@ pub struct LoginInfo {
pub brand_type: i32, pub brand_type: i32,
// token // token
pub token: String, pub token: String,
// 设备号
pub device: Option<String>,
} }
impl LoginInfo { impl LoginInfo {
...@@ -49,7 +51,7 @@ impl StoreInfo { ...@@ -49,7 +51,7 @@ impl StoreInfo {
self.brand_type.is_dinner() self.brand_type.is_dinner()
} }
pub fn login_info(&self, token: impl AsRef<str>) -> LoginInfo { pub fn login_info(&self, token: impl AsRef<str>, device: Option<String>) -> LoginInfo {
let StoreInfo { let StoreInfo {
group_id, group_id,
seller_id, seller_id,
...@@ -66,6 +68,7 @@ impl StoreInfo { ...@@ -66,6 +68,7 @@ impl StoreInfo {
store_name, store_name,
brand_type, brand_type,
token: token.as_ref().to_string(), token: token.as_ref().to_string(),
device
} }
} }
} }
......
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