import 'package:aku_community_manager/const/api.dart'; import 'package:aku_community_manager/models/manager/decoration/decoration_detail_model.dart'; import 'package:aku_community_manager/utils/network/base_model.dart'; import 'package:aku_community_manager/utils/network/net_util.dart'; import 'package:dio/dio.dart'; class ManageFunc { static Future getDetcorationDetail(int id) async { Response response = await NetUtil() .dio .get(API.manage.decorationFindByld, queryParameters: { 'decorationId': id, }); return DecorationDetailModel.fromJson(response.data); } static Future getContactOwner(int id) async { BaseModel baseModel = await NetUtil().get( API.manage.goodsOutContactOwner, params: { 'estateId': id, }, ); return baseModel.data; } }