import 'package:dio/dio.dart';
import 'package:electronic_assistant/data/api/response/talk_generate_response.dart';
import 'package:retrofit/http.dart';

import '../../base/base_response.dart';
import '../consts/Constants.dart';
import 'network_module.dart';

part 'atmob_file_api.c.dart';

abstract class AtmobFileApi {
  factory AtmobFileApi(Dio dio, {String baseUrl}) = _AtmobFileApi;

  @MultiPart()
  @POST("/project/secretary/v1/talk/generate")
  Future<BaseResponse<TalkGenerateResponse>> uploadTalkFile(
      @Part() Map<String, dynamic> body,
      {ProgressCallback? onSendProgress});
}

final atmobFileApi = AtmobFileApi(fileDio, baseUrl: Constants.baseUrl);
