import { request } from '../utils/fetch';
import { api } from '../constants/config';

export async function updateVersionByName(id: number, data: { companyName: string } | { realName: string; occupation: string }) {
  return request(api.updateVersionByName, { id }, undefined, JSON.stringify(data));
}
