/**
 * 营业日配置 API。
 *
 * 从后端 /api/config/business-day 获取营业日分割点小时值。
 */

import { apiClient } from "./client";

export interface BusinessDayConfig {
  business_day_start_hour: number;
}

/** 获取营业日分割点配置 */
export async function fetchBusinessDayConfig(): Promise<BusinessDayConfig> {
  const { data } = await apiClient.get<BusinessDayConfig>("/config/business-day");
  return data;
}
