diff --git a/src/main/java/com/dc/dc_project/controller/bigScreen/LaboratoryBigScreenController.java b/src/main/java/com/dc/dc_project/controller/bigScreen/LaboratoryBigScreenController.java new file mode 100644 index 0000000..13b3ac0 --- /dev/null +++ b/src/main/java/com/dc/dc_project/controller/bigScreen/LaboratoryBigScreenController.java @@ -0,0 +1,27 @@ +package com.dc.dc_project.controller.bigScreen; + + +import com.dc.dc_project.common.ResponseResult; +import com.dc.dc_project.model.dto.LaboratoryDto; +import com.dc.dc_project.service.LaboratoryService; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.tags.Tag; +import lombok.RequiredArgsConstructor; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +@RestController +@RequestMapping("/bigScreen/laboratory") +@Tag(name = "大屏-实验室管理") +@RequiredArgsConstructor(onConstructor_ = {@Autowired}) +public class LaboratoryBigScreenController { + + private final LaboratoryService laboratoryService; + + @PostMapping("/list") + @Operation(summary = "实验室列表") + public ResponseResult list(@RequestBody LaboratoryDto laboratoryDto) { + return laboratoryService.getList(laboratoryDto); + } + +}