control-center-management/src/main/java/inc/sdt/controlcentermanagement/presentation/StatsController.java

44 lines
1.4 KiB
Java
Raw Normal View History

2023-09-08 06:17:16 +00:00
package inc.sdt.controlcentermanagement.presentation;
import inc.sdt.controlcentermanagement.application.StatsService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.HttpStatus;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
@RestController
public class StatsController {
private final Logger log = LoggerFactory.getLogger(StatsController.class);
private final StatsService statsService;
public StatsController(StatsService statsService) {
this.statsService = statsService;
}
@ResponseStatus(HttpStatus.OK)
@GetMapping("/chambers")
public String chambers(
// @RequestHeader("Authorization") String authorization
){
log.info("[chambers]");
return null;
}
// 챔버 갯수 및 번호 주는 api
// 이건 전체 화면 챔버 번호 들어오면 그 챔버에 있는 노드큐 및 슬롯으로 수경님 api 호출해서 합산하기
// 상세에서는 번호는 슬롯번호 mes code는 튜번호로 해서 쭉 보여주기
//@ResourceMapping(name = "Tube_Control", method = "PATCH", uri = "/chamber/{chamberNumber}/tube/toggle", description = "Tube On/Off 제어")
// @ResponseStatus(HttpStatus.OK)
// @PatchMapping("/chamber/{chamberNumber}/tube/toggle")
}