src/main/java/com/zgn/hospital/controller/FeedbackController.java
(完整代码) 956Bpackage com.zgn.hospital.controller;
import com.zgn.hospital.entity.feedback;
import com.zgn.hospital.service.FeedbackService;
import com.zgn.hospital.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
/**
* @program: hospital_info
* @description:
* @author: ZGN
* @create: 2023-04-06 17:15
*/
@RestController
@RequestMapping("/feedback")
public class FeedbackController {
@Autowired
FeedbackService feedbackService;
@PostMapping("/select/{currentPage}/{size}")
R select(@PathVariable("currentPage") int currentPage, @PathVariable("size") int size){
return feedbackService.selectByPage(currentPage,size);
}
@PostMapping("/fd")
R fd(@RequestBody feedback feedback){
return feedbackService.fd(feedback);
}
@PostMapping("/feed")
R feed(@RequestBody feedback feedback){
return feedbackService.feed(feedback);
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
