courierstore status

This commit is contained in:
gazebo
2020-02-09 12:03:04 +08:00
parent c42bb64998
commit f73a97fc6b
2 changed files with 6 additions and 1 deletions

View File

@@ -136,6 +136,11 @@ func StoreDetail2ShopInfo(storeDetail *dao.StoreDetail2) (shopInfo *dadaapi.Shop
ContactName: storeDetail.PayeeName,
Phone: storeDetail.Tel1,
}
if storeDetail.CourierStatus >= model.StoreStatusClosed {
shopInfo.Status = dadaapi.ShopStatusOnline
} else {
shopInfo.Status = dadaapi.ShopStatusOffline
}
return shopInfo
}