Commit 143e3289 authored by xuwencheng's avatar xuwencheng

login

parent 0b1c5d2b
use serde::{Deserialize, Serialize};
#[derive(Debug, Clone, Deserialize, Serialize, Default)]
pub(crate) struct LoginInfo {
pub struct LoginInfo {
// 集团id
pub group_id: i64,
// 店铺id
......@@ -16,7 +15,7 @@ pub(crate) struct LoginInfo {
}
impl LoginInfo {
pub(crate) fn is_dinner(&self) -> bool {
pub fn is_dinner(&self) -> bool {
self.brand_type == 70
}
}
\ 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