package com.ywt.glasses.controllers.mg;

import com.ywt.glasses.core.BaseResponse;
import com.ywt.glasses.core.MGRight;
import com.ywt.glasses.service.ShopService;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author daiyihua
 * @desc 客户端下单相关接口
 */
@RestController
@RequestMapping(value = {"/mg/shop"})
public class ShopController {

    private static final Logger logger = LoggerFactory.getLogger(ShopController.class);

    @Autowired
    private ShopService shopService;

    @MGRight(need = false)
    @ApiOperation(value = "获取店铺列表接口")
    @RequestMapping(value = "/getShopList", method = RequestMethod.GET)
    public BaseResponse getShopList() throws Exception {
        return shopService.getShopList();
    }


}
