24 lines
762 B
Java
24 lines
762 B
Java
package com.example.caseData.controller;
|
|
|
|
import com.example.caseData.common.Response;
|
|
import com.example.caseData.dto.index.GetIndexClinicalDto;
|
|
import com.example.caseData.service.IndexService;
|
|
import jakarta.annotation.Resource;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
@RestController
|
|
@RequestMapping()
|
|
public class IndexController extends BaseController {
|
|
@Resource
|
|
private IndexService indexService;
|
|
|
|
// 首页-临床病例库
|
|
@GetMapping("/index/clinical")
|
|
public Response<GetIndexClinicalDto> getIndexClinical() {
|
|
return Response.success(indexService.GetIndexClinical());
|
|
}
|
|
|
|
}
|