package org.springblade.app.controller;

import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springblade.core.mp.support.BladePage;
import org.springblade.core.mp.support.Query;
import org.springblade.core.tool.api.R;
import org.springblade.device.dto.IotDeviceDTO;
import org.springblade.device.feign.IIotDeviceClient;
import org.springblade.device.vo.IotDeviceVO;
import org.springblade.enterprise.entity.Enterprise;
import org.springblade.enterprise.feign.IEnterpriseClient;
import org.springblade.enterprise.vo.EnterpriseVO;
import org.springblade.estate.dto.FeedbackDTO;
import org.springblade.estate.feign.IFeedbackClient;
import org.springframework.util.Assert;
import org.springframework.web.bind.annotation.*;

/**
 * @author lidexi
 * @date 2021/5/17 16:58
 */
@RestController
@RequiredArgsConstructor
@RequestMapping("/estate/feedback")
public class FeedbackController {

	private final IFeedbackClient feedbackClient;

	/**
	 * 用户反馈提交
	 */
	@PostMapping("/submit")
	@ApiOperationSupport(order = 9)
	@ApiOperation(value = "提交", notes = "传入smartDevice")
	public R submit(@RequestBody FeedbackDTO feedbackDTO) {
		return R.data(feedbackClient.submit(feedbackDTO));

	}

}
