src/main/java/com/zgn/hospital/controller/CaselogController.java

(完整代码) 1KB

package com.zgn.hospital.controller;

import com.zgn.hospital.entity.caselog;
import com.zgn.hospital.service.CaselogService;
import com.zgn.hospital.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.text.ParseException;

/**
 * @program: hospital_info
 * @description:
 * @author: ZGN
 * @create: 2023-04-03 11:44
 */
@RestController
@RequestMapping("/caselog")
public class CaselogController {
    @Autowired
    CaselogService caselogService;

    @PostMapping("/select/{currentPage}/{size}")
    R select(@PathVariable("currentPage") int currentPage, @PathVariable("size") int size, @RequestBody caselog caselog){
        return caselogService.selectByPage(currentPage,size,caselog);
    }
    @PostMapping("/sel/{currentPage}/{size}")
    R sel(@PathVariable("currentPage") int currentPage, @PathVariable("size") int size, @RequestBody caselog caselog){
        return caselogService.selByPage(currentPage,size,caselog);
    }
    @PostMapping("/addcaselog")
    R addcaselog(@RequestBody caselog caselog) throws ParseException {
        return caselogService.addcaselog(caselog);
    }
}

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。