- up
This commit is contained in:
@@ -34,11 +34,11 @@ type StoreDetail struct {
|
|||||||
type StoreDetail2 struct {
|
type StoreDetail2 struct {
|
||||||
model.Store
|
model.Store
|
||||||
|
|
||||||
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
VendorID int `orm:"column(vendor_id)" json:"vendorID"`
|
||||||
CourierStoreName string
|
CourierStoreName string `json:"courierStoreName"`
|
||||||
VendorStoreID string `orm:"column(vendor_store_id)"`
|
VendorStoreID string `orm:"column(vendor_store_id)" json:"vendorStoreID"`
|
||||||
DistrictName string
|
DistrictName string `json:"districtName"`
|
||||||
CityName string
|
CityName string `json:"cityName"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *StoreDetail) GetPricePerentage(price int) (pricePercentage int) {
|
func (s *StoreDetail) GetPricePerentage(price int) (pricePercentage int) {
|
||||||
|
|||||||
@@ -131,7 +131,7 @@ func StoreDetail2ShopInfo(storeDetail *dao.StoreDetail2) (shopInfo *dadaapi.Shop
|
|||||||
}
|
}
|
||||||
shopInfo = &dadaapi.ShopInfo{
|
shopInfo = &dadaapi.ShopInfo{
|
||||||
OriginShopID: utils.Int2Str(storeDetail.ID),
|
OriginShopID: utils.Int2Str(storeDetail.ID),
|
||||||
StationName: storeDetail.Name,
|
StationName: storeDetail.CourierStoreName,
|
||||||
CityName: cityName,
|
CityName: cityName,
|
||||||
AreaName: districtName,
|
AreaName: districtName,
|
||||||
StationAddress: storeDetail.Address,
|
StationAddress: storeDetail.Address,
|
||||||
|
|||||||
@@ -130,7 +130,7 @@ func (c *DeliveryHandler) CreateStore(ctx *jxcontext.Context, storeDetail *dao.S
|
|||||||
}
|
}
|
||||||
shopInfo := &mtpsapi.ShopInfo{
|
shopInfo := &mtpsapi.ShopInfo{
|
||||||
ShopID: utils.Int2Str(storeDetail.ID),
|
ShopID: utils.Int2Str(storeDetail.ID),
|
||||||
ShopName: storeDetail.Name,
|
ShopName: storeDetail.CourierStoreName,
|
||||||
Category: mtpsapi.ShopCategoryFruit,
|
Category: mtpsapi.ShopCategoryFruit,
|
||||||
SecondCategory: mtpsapi.ShopCategoryFruitFruit,
|
SecondCategory: mtpsapi.ShopCategoryFruitFruit,
|
||||||
ContactName: storeDetail.PayeeName,
|
ContactName: storeDetail.PayeeName,
|
||||||
|
|||||||
Reference in New Issue
Block a user