수정중

This commit is contained in:
ihyeon-yong 2023-09-08 15:17:16 +09:00
parent b410e107e9
commit 4609ab1d48
4 changed files with 55 additions and 1 deletions

View File

@ -0,0 +1,7 @@
package inc.sdt.controlcentermanagement.application;
import org.springframework.stereotype.Service;
@Service
public class DefaultStatsService implements StatsService{
}

View File

@ -0,0 +1,4 @@
package inc.sdt.controlcentermanagement.application;
public interface StatsService {
}

View File

@ -0,0 +1,43 @@
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")
}

View File

@ -6,7 +6,7 @@ spring:
name: control-center-management name: control-center-management
data: data:
mongodb: mongodb:
uri: mongodb://sdt:251327@localhost:27017/awexomeray?authSource=admin uri: mongodb://13.209.39.139:32000/awexomeray?authSource=admin
deployer: deployer:
endpoint: http://localhost:8085 endpoint: http://localhost:8085