package cn.com.countrygarden.bi.main.controller.wcx;

import cn.com.countrygarden.bi.main.core.Response;
import cn.com.countrygarden.bi.main.core.Result;
import cn.com.countrygarden.bi.main.dto.wcx.WcxFeedbackDto;
import cn.com.countrygarden.bi.main.model.PageData;
import cn.com.countrygarden.bi.main.service.wcx.WcxFeedbackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 创意信息处理
 */
@RestController
@RequestMapping("/api/wcx/wcxFeedback")
public class WcxFeedbackController {
    @Autowired
    private WcxFeedbackService wcxFeedbackService;

    /**
     * 获取创新数据列表
     *
     * @param condition
     * @return
     */
    @GetMapping("/pageList")
    public Result selectInnovationPageList(WcxFeedbackDto condition) {
        PageData pageData = wcxFeedbackService.selectPageList(condition);
        return Response.response(pageData);
    }
}
