This commit is contained in:
richboo111
2022-08-25 09:38:51 +08:00
parent 951bad012e
commit 6163f1b0fe

View File

@@ -142,22 +142,22 @@ type Info1 struct {
//首页展示信息 //首页展示信息
type HomePageInfos struct { type HomePageInfos struct {
StoreID int `json:"storeID"` //门店ID //StoreID int `json:"storeID"` //门店ID
StoreName string `json:"storeName"` //门店名字 //StoreName string `json:"storeName"` //门店名字
OpenTime1 int16 `json:"openTime1"` // 930就表示9点半用两个的原因是为了支持中午休息1与2的时间段不能交叉为0表示没有 //OpenTime1 int16 `json:"openTime1"` // 930就表示9点半用两个的原因是为了支持中午休息1与2的时间段不能交叉为0表示没有
CloseTime1 int16 `json:"closeTime1"` // 营业时间 1 //CloseTime1 int16 `json:"closeTime1"` // 营业时间 1
OpenTime2 int16 `json:"openTime2"` // 营业时间2 //OpenTime2 int16 `json:"openTime2"` // 营业时间2
CloseTime2 int16 `json:"closeTime2"` //CloseTime2 int16 `json:"closeTime2"`
Status int `json:"status"` //门店是否营业 //Status int `json:"status"` //门店是否营业
Distance int `json:"distance"` //店铺与定位 直线距离 //Distance int `json:"distance"` //店铺与定位 直线距离
Address string `json:"address"` //门店地址 //Address string `json:"address"` //门店地址
BrandID int `orm:"column(brand_id)" json:"brandID"` //品牌ID //BrandID int `orm:"column(brand_id)" json:"brandID"` //品牌ID
BrandName string `json:"brandName"` //品牌名字 //BrandName string `json:"brandName"` //品牌名字
BrandLogo string `json:"brandLogo"` //品牌logo //BrandLogo string `json:"brandLogo"` //品牌logo
DeliveryFeeDeductionSill int `json:"deliveryFeeDeductionSill"` //订单满减金额 //DeliveryFeeDeductionSill int `json:"deliveryFeeDeductionSill"` //订单满减金额
DeliveryFeeDeductionFee int `json:"deliveryFeeDeductionFee"` //订单减免金额 //DeliveryFeeDeductionFee int `json:"deliveryFeeDeductionFee"` //订单减免金额
WeeklyScore int `json:"weeklyScore"` //店铺每周评分 //WeeklyScore int `json:"weeklyScore"` //店铺每周评分
//Info *Info1 `json:"info"` //拼接数据 Info *Info1 `json:"info"` //拼接数据
//热销商品信息 //热销商品信息
SkuID int `json:"skuID"` //商品ID SkuID int `json:"skuID"` //商品ID
SkuName string `json:"skuName"` //商品名字 SkuName string `json:"skuName"` //商品名字
@@ -5793,20 +5793,21 @@ func GetHomePageByLocation(ctx *jxcontext.Context, lng, lat float64, needWalkDis
for _, j := range topSkusInfo { for _, j := range topSkusInfo {
if i.StoreID == j.StoreID { if i.StoreID == j.StoreID {
data := HomePageInfos{ data := HomePageInfos{
StoreID: i.StoreID, //StoreID: i.StoreID,
StoreName: i.StoreName, //StoreName: i.StoreName,
OpenTime1: i.OpenTime1, //OpenTime1: i.OpenTime1,
CloseTime1: i.CloseTime1, //CloseTime1: i.CloseTime1,
OpenTime2: i.OpenTime2, //OpenTime2: i.OpenTime2,
CloseTime2: i.CloseTime2, //CloseTime2: i.CloseTime2,
Status: i.Status, //Status: i.Status,
Distance: i.Distance, //Distance: i.Distance,
Address: i.Address, //Address: i.Address,
BrandName: i.BrandName, //BrandName: i.BrandName,
BrandLogo: i.BrandLogo, //BrandLogo: i.BrandLogo,
DeliveryFeeDeductionSill: i.DeliveryFeeDeductionSill, //DeliveryFeeDeductionSill: i.DeliveryFeeDeductionSill,
DeliveryFeeDeductionFee: i.DeliveryFeeDeductionFee, //DeliveryFeeDeductionFee: i.DeliveryFeeDeductionFee,
//WeeklyScore: i.WeeklyScore, //WeeklyScore: i.WeeklyScore,
Info: i,
SkuID: j.SkuID, SkuID: j.SkuID,
SkuName: j.Name, SkuName: j.Name,
SkuStatus: j.Status, SkuStatus: j.Status,