You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
815 B

3 years ago
import 'package:bytedesk_kefu/http/bytedesk_leavemsg_api.dart';
import 'package:bytedesk_kefu/model/helpCategory.dart';
import 'package:bytedesk_kefu/model/jsonResult.dart';
class LeaveMsgRepository {
final BytedeskLeaveMsgHttpApi bytedeskHttpApi = BytedeskLeaveMsgHttpApi();
LeaveMsgRepository();
Future<List<HelpCategory>> getHelpLeaveMsgCategories(String? uid) async {
return await bytedeskHttpApi.getHelpLeaveMsgCategories(uid);
}
3 years ago
// , List<String>? imageUrls
Future<JsonResult> submitLeaveMsg(String? wid, String? aid, String? type, String? mobile, String? email, String? content) async {
return await bytedeskHttpApi.submitLeaveMsg(wid, aid, type, mobile, email, content);
3 years ago
}
Future<String> upload(String? filePath) async {
return await bytedeskHttpApi.upload(filePath);
}
}