Add WebSocket handlers for Customs API

This commit is contained in:
backuppc
2025-12-02 15:38:14 +09:00
parent 56cc4ed712
commit db076d7135

View File

@@ -929,6 +929,25 @@ namespace Project.Web
} }
break; break;
// ===== Customs API (업체정보) =====
case "CUSTOMS_GET_LIST":
{
string searchKey = json.searchKey ?? "";
string result = _bridge.Customs_GetList(searchKey);
var response = new { type = "CUSTOMS_LIST_DATA", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
case "CUSTOMS_GET_DETAIL":
{
int idx = json.idx ?? 0;
string result = _bridge.Customs_GetDetail(idx);
var response = new { type = "CUSTOMS_DETAIL_DATA", data = JsonConvert.DeserializeObject(result) };
await Send(socket, JsonConvert.SerializeObject(response));
}
break;
// ===== Holiday API (월별근무표) ===== // ===== Holiday API (월별근무표) =====
case "HOLIDAY_GET_LIST": case "HOLIDAY_GET_LIST":
{ {