37cac72085
- Docker/K8s 배포 설정을 pipeline-backend/pipeline-front로 통일 - 네임스페이스, 서비스, PVC 등 k8s 리소스명 pipeline-* 로 변경 - AI 에이전트 관리 기능 추가 (에이전트, 그룹, 프로바이더, 대화, API 키, 지식베이스) - 장비 연결 관리 기능 추가 (PLC/Modbus/OPC-UA/MQTT) - 배치 스케줄러에 AI agent/device collection/crawling 타입 추가 - 배치 편집 UI 개선 (6가지 실행 방식 지원) - 회사별 페이지(COMPANY_*) 제거 및 AdminPageRenderer 최적화 - 메뉴 재구성: 장비 연결 관리 시스템관리로 이동, 에이전트 오케스트레이션으로 개명 - ai-assistant 디렉토리 제거 (backend-node로 통합) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
34 lines
1.4 KiB
TypeScript
34 lines
1.4 KiB
TypeScript
import { apiClient } from "./client";
|
|
|
|
const BASE = "/pipeline-device-connections";
|
|
|
|
export const pipelineDeviceApi = {
|
|
// 프로토콜 옵션
|
|
getProtocols: () =>
|
|
apiClient.get(`${BASE}/protocols`).then((r) => r.data),
|
|
|
|
// 연결 CRUD
|
|
getConnections: (params?: { protocol?: string; is_active?: string; search?: string; status?: string }) =>
|
|
apiClient.get(BASE, { params }).then((r) => r.data),
|
|
getConnectionById: (id: number) =>
|
|
apiClient.get(`${BASE}/${id}`).then((r) => r.data),
|
|
createConnection: (data: any) =>
|
|
apiClient.post(BASE, data).then((r) => r.data),
|
|
updateConnection: (id: number, data: any) =>
|
|
apiClient.put(`${BASE}/${id}`, data).then((r) => r.data),
|
|
deleteConnection: (id: number) =>
|
|
apiClient.delete(`${BASE}/${id}`).then((r) => r.data),
|
|
testConnection: (id: number) =>
|
|
apiClient.post(`${BASE}/${id}/test`).then((r) => r.data),
|
|
|
|
// 태그 매핑
|
|
getTagMappings: (connectionId: number) =>
|
|
apiClient.get(`${BASE}/${connectionId}/tags`).then((r) => r.data),
|
|
createTagMapping: (connectionId: number, data: any) =>
|
|
apiClient.post(`${BASE}/${connectionId}/tags`, data).then((r) => r.data),
|
|
updateTagMapping: (tagId: number, data: any) =>
|
|
apiClient.put(`${BASE}/tags/${tagId}`, data).then((r) => r.data),
|
|
deleteTagMapping: (tagId: number) =>
|
|
apiClient.delete(`${BASE}/tags/${tagId}`).then((r) => r.data),
|
|
};
|