SymptomsController.java 768 B

1234567891011121314151617181920212223242526
  1. package com.zhentao.symptoms.controller;
  2. import com.zhentao.symptoms.dto.SymptomsDto;
  3. import com.zhentao.symptoms.service.SymptomsService;
  4. import com.zhentao.user.vo.ResultVo;
  5. import org.springframework.beans.factory.annotation.Autowired;
  6. import org.springframework.web.bind.annotation.*;
  7. /**
  8. * @author: wzy
  9. * @date: 2025/5/25 20:46
  10. */
  11. @RestController
  12. @RequestMapping("/symptoms")
  13. public class SymptomsController {
  14. @Autowired
  15. private SymptomsService symptomsService;
  16. @PostMapping("/findAll")
  17. public ResultVo findAll(@RequestBody SymptomsDto dto){
  18. return symptomsService.findAll(dto);
  19. }
  20. @GetMapping("/selectById/{id}")
  21. public ResultVo selectById(@PathVariable Integer id){
  22. return symptomsService.selectById(id);
  23. }
  24. }