src/main/java/com/zgn/hospital/controller/PrescController.java
(完整代码) 1KBpackage com.zgn.hospital.controller;
import com.zgn.hospital.entity.presc;
import com.zgn.hospital.service.PrescService;
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-03 21:52
*/
@RestController
@RequestMapping("/presc")
public class PrescController {
@Autowired
PrescService prescService;
@PostMapping("/select/{currentPage}/{size}")
R select(@PathVariable("currentPage") int currentPage, @PathVariable("size") int size, @RequestBody presc presc){
return prescService.selectByPage(currentPage,size,presc);
}
@PostMapping("/submit")
R submit(@RequestBody presc presc){
return prescService.submit(presc);
}
@PostMapping("/sel/{currentPage}/{size}")
R sel(@PathVariable("currentPage") int currentPage, @PathVariable("size") int size, @RequestBody presc presc){
return prescService.selByPage(currentPage,size,presc);
}
@PostMapping("/createpresc")
R createpresc(@RequestBody presc presc){
return prescService.createpresc(presc);
}
@PostMapping("/doctorsel/{currentPage}/{size}")
R doctorsel(@PathVariable("currentPage") int currentPage, @PathVariable("size") int size, @RequestBody presc presc){
return prescService.doctorselByPage(currentPage,size,presc);
}
@PostMapping("/deletepresc/{id}")
R deletepresc(@PathVariable("id") Integer id){
return prescService.deletepresc(id);
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
