/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2021-03-15 15:31:09
 * @LastEditTime : 2023-05-19 10:53:39
 * @FilePath     : /wisdom-huiguanjia-app/oa_package/lib/src/service/oa_service.dart
 * @Description  : Do not edit
 */
import 'package:app_package/app_package.dart';
import 'package:oa_package/src/models/drafts_model.dart';
import 'package:oa_package/src/models/process_model.dart';
import 'package:oa_package/src/models/stat_model.dart';
import 'package:oa_package/src/models/oa_menu_list_model.dart';
import 'package:oa_package/src/models/menu_detail_model.dart';
import 'package:oa_package/src/models/task_detail_model.dart';
import 'package:oa_package/src/models/task_list_model.dart';
import 'package:oa_package/src/models/tast_history_list_model.dart';

abstract class OaIndexService {
  Future<ResModel<List<ProcessModel>?>> getProcessList();
  Future<ResModel<StatModel>> getStatistic();
  Future<ResModel<List<OaMenuListModel>?>> getOaMenuList();
  Future<ResModel<MenuDetailModel>> getMenuFormDetail(data);
  Future<ResModel<PagingModel<TaskHistoryListModel>>> getTaskHistoryList(data);
  Future<ResModel<PagingModel<TaskListModel>>> getTaskTypeList(
      data, String type);
  Future<ResModel<TaskDetailModel>> getTaskDetaiil(data);
  Future<bool?> patchTaskDetail(data, content);
  Future<bool?> patchTaskTerminate(data);
  Future<String?> postFlowsStart(id, data);
  Future<ResModel<DraftsModel>> getDraftsDetail(data);
}
