import { requestClient } from '#/api/request';

/**
 * 切换药品单品包邮（非中药商品共用）
 * @param drugId 药品 ID
 */
export async function toggleDrugFreeShipping(drugId: number) {
  return requestClient.post<{ is_free_shipping: number }>(
    'drug-free-shipping/toggle',
    { drug_id: drugId },
  );
}
