Files
UUVPN/source/lib/models/plan_model.dart
T
Zeus 1bf69048f3 update ios project
update ios project
2024-07-24 11:51:39 +08:00

25 lines
642 B
Dart

import 'package:uuvpn/entity/plan_entity.dart';
import 'package:uuvpn/models/base_model.dart';
import 'package:uuvpn/service/plan_service.dart';
class PlanModel extends BaseModel {
final PlanService _planService = PlanService();
List<PlanEntity> _planEntityList = [];
List<PlanEntity> get planEntityList => _planEntityList;
// 获取套餐列表
void fetchPlanList() async {
try {
// bool xxx = await platform.invokeMethod("getStatus");
// result = xxx ? 1 : 0;
_planEntityList = (await _planService.plan())!;
notifyListeners();
} on Exception catch (e) {
print(e.toString());
}
}
}