package com.kiisoo.ic.synchronous.controller;

import com.kiisoo.ic.common.BaseController;
import com.kiisoo.ic.synchronous.service.PromotionCodeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * 同步推广码
 */
@Controller
@RequestMapping("/promotion")
@Slf4j
public class PromotionCodeController extends BaseController {

    @Autowired
    private PromotionCodeService promotionCodeService;

    /**
     * 同步店铺推广码
     */
    @RequestMapping(value = "/shop",method = RequestMethod.GET)
    @ResponseBody
    public Map<String, Object> getShopPromotion(){
        promotionCodeService.getStaffPromotion();
        return data(success());
    }

    public void getStaffPromotion(){}

}
