大屏获取试验室
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user