package com.reyun.controller;

import com.reyun.service.IDicService;
import com.reyun.util.ResultModel;
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;

/**
 * description:
 *
 * @author nolan
 * @date 25/12/2017
 */
@Controller
@RequestMapping("dic")
public class DicController
{

    @Autowired
    private IDicService iDicService;

    @RequestMapping(value = "findbycampaign", method = RequestMethod.GET)
    @ResponseBody
    public ResultModel findDicsByCampaign() {
        return ResultModel.OK(iDicService.findByCampaign());
    }
}
