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