Commit 132a518c authored by xuwencheng's avatar xuwencheng

login device

parent 076f73c7
......@@ -16,6 +16,8 @@ pub struct LoginInfo {
pub brand_type: i32,
// token
pub token: String,
// 设备号
pub device: Option<String>,
}
impl LoginInfo {
......@@ -49,7 +51,7 @@ impl StoreInfo {
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 {
group_id,
seller_id,
......@@ -66,6 +68,7 @@ impl StoreInfo {
store_name,
brand_type,
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