|
|
@@ -0,0 +1,21 @@
|
|
|
+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.g.dart';
|
|
|
+
|
|
|
+@RestApi()
|
|
|
+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);
|
|
|
+}
|
|
|
+
|
|
|
+final atmobFileApi = AtmobFileApi(fileDio, baseUrl: Constants.baseUrl);
|