Add WebSocket handlers for Customs API
This commit is contained in:
@@ -929,6 +929,25 @@ namespace Project.Web
|
||||
}
|
||||
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 (월별근무표) =====
|
||||
case "HOLIDAY_GET_LIST":
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user