Commit a4a0c483 authored by xuwencheng's avatar xuwencheng

login

parent 94be826b
......@@ -33,6 +33,10 @@ pub struct StoreInfo {
}
impl StoreInfo {
pub fn is_usable(&self) -> bool {
self.store_id != 0
}
pub fn is_dinner(&self) -> bool {
self.brand_type.is_dinner()
}
......
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