init
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user