package com.upyuns.platform.rs.website.controller;

import com.github.wxiaoqi.security.common.msg.ObjectRestResponse;
import com.github.wxiaoqi.security.common.rest.BaseController;
import com.upyuns.platform.rs.website.biz.FeedbackInfoBiz;
import com.upyuns.platform.rs.website.dto.FeedbackInfoDto;
import com.upyuns.platform.rs.website.entity.FeedbackInfo;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("feedbackInfo")
public class FeedbackInfoController extends BaseController<FeedbackInfoBiz, FeedbackInfo> {

	@GetMapping(value = "getAll")
	public ObjectRestResponse getAll(FeedbackInfoDto feedbackInfoDto) {
		return baseBiz.getAll(feedbackInfoDto);
	}

	@PostMapping(value = "updateObj")
	public ObjectRestResponse updateObj(@RequestBody FeedbackInfo feedbackInfo) {
		return baseBiz.updateObj(feedbackInfo);
	}

}