import { useMutation } from '@tanstack/react-query'
import { authService, FetchAiUserLikedRequest, FetchVoiceTtsV2Request } from '@/services/common'

export function useFetchVoiceTtsV2() {
  return useMutation({
    mutationFn: (data: FetchVoiceTtsV2Request) => authService.fetchVoiceTtsV2(data),
  })
}

// 重新导出类型，方便其他模块使用
export type { FetchVoiceTtsV2Request } from '@/services/common'

export function useDoAiUserLiked() {
  return useMutation({
    mutationFn: (data: FetchAiUserLikedRequest) => authService.doAiUserLiked(data),
  })
}
