cover image

This commit is contained in:
Myat Zin Wai Maw
2020-03-06 11:20:16 +06:30
parent 7394ca7e8d
commit 54175ddcdf
6 changed files with 35 additions and 17 deletions

View File

@@ -1,6 +1,12 @@
if @shops
json.status true
json.data @shops
json.data @shops do |shop|
json.id shop.id
json.name shop.name
json.logo shop.logo
json.shop_code shop.shop_code
json.cover shop.display_images.empty? ? nil : "#{api_display_image_url(shop.shop_code)}.jpeg"
end
else
json.status false
json.message "Record Not Found"