package com.tykj.dev.device.user.subject.controller;

import com.tykj.dev.config.swagger.AutoDocument;
import com.tykj.dev.device.user.subject.entity.Feedback;
import com.tykj.dev.device.user.subject.service.FeedbackService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zjm
 * @version 1.0.0
 * @ClassName FeedbackController.java
 * @Description TODO
 * @createTime 2021年04月27日 10:40:00
 */
@RestController
@AutoDocument
@Api(tags = "意见反馈模块", description = "意见反馈模块")
@RequestMapping("/feedback")
public class FeedbackController {
    @Autowired
    FeedbackService feedbackService;
    @PostMapping("/save")
    @ApiOperation(value = "添加区域对象", notes = "成功返回区域对象")
    public ResponseEntity saveFeedback(@RequestBody Feedback feedback){
        return ResponseEntity.ok( feedbackService.save(feedback));
    }
}
