package com.xxfc.platform.im.rest;

import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.xxfc.platform.im.biz.ImQuestionBiz;
import com.xxfc.platform.im.entity.ImQuestion;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
@RequestMapping("imQuestion")
public class ImQuestionController extends BaseController<ImQuestionBiz,ImQuestion> {

    @Autowired
    private ImQuestionBiz questionBiz;

    @RequestMapping(value = "/app/unauth/getQuestionList",method = RequestMethod.POST)
    @ResponseBody
    public Object getQuestionList(@RequestBody Map<String,Object> map)throws Exception{
        return questionBiz.getQuestionList(map);
    }
}