/*
 * @Author: XianKaiQun
 * @Date: 2020-04-22 10:57:24
 * @LastEditors  : WuWei
 * @LastEditTime : 2022-01-19 16:28:40
 * @Descripttion: 
 */

import 'package:app_package/app_package.dart';
import 'package:app_package/src/models/person.dart';

class ExcutiveApi {
  static String _prefix = '/app/admin/excutive';

  ///个人任务管理
  ///http://yapi.wisdomcity.com.cn/project/40/interface/api/7765
  static Future<ResModel<PersonModel>> getPerson() async {
    var res = await HttpUtil.instance.get(
      '$_prefix/v1/person',
    );

    return ResModel<PersonModel>(
      json: res.data,
      to: (v) => v.toJson(),
      from: (v) => PersonModel.fromJson(v),
    );
  }
}
