Spring Boot 3.5 / Java 17 + React 19 + PostgreSQL 단일 JAR. 멀티테넌트(LGINNOTEK/LGIT/EMART/ZIOINFO), HCore 게이트웨이 관제, POS 연동 가격 자동 업데이트, Ollama 온프레미스 AI 알람 분석·POS 분류. 레거시 ESN 6개 프로젝트(Spring Boot 1.5/Java 8) 현대화 통합. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
20 lines
596 B
Java
20 lines
596 B
Java
package com.zioinfo.esn.controller;
|
|
|
|
import com.zioinfo.esn.common.ApiResponse;
|
|
import com.zioinfo.esn.domain.DashboardVo;
|
|
import com.zioinfo.esn.mapper.DashboardMapper;
|
|
import lombok.RequiredArgsConstructor;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
@RestController
|
|
@RequestMapping("/api/dashboard")
|
|
@RequiredArgsConstructor
|
|
public class DashboardController {
|
|
private final DashboardMapper mapper;
|
|
|
|
@GetMapping
|
|
public ApiResponse<DashboardVo> summary(@RequestParam(required = false) String tenantCode) {
|
|
return ApiResponse.ok(mapper.getSummary(tenantCode));
|
|
}
|
|
}
|