This commit is contained in:
张良(004796)
2024-04-18 18:47:03 +08:00
parent 14cd347ee8
commit 43eaa1f1be
11 changed files with 308 additions and 1 deletions

View File

@@ -0,0 +1,36 @@
package com.ruoyi.xq.controller.app;
import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.xq.dto.app.other.FeedbackReq;
import com.ruoyi.xq.dto.app.report.ReportPushReq;
import com.ruoyi.xq.service.FeedbackService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
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;
@RestController
@RequestMapping("/api/other")
@Tag(name = "其他接口")
@Slf4j
public class OtherController {
@Autowired
private FeedbackService feedbackService;
@PostMapping("/feedback")
@Operation(summary = "留言反馈")
@Log(title = "留言反馈", businessType = BusinessType.OTHER, isSaveDb = false)
public R<Void> feedback(@RequestBody FeedbackReq req){
feedbackService.feedback(req);
return R.ok();
}
}