update ios project

update ios project
This commit is contained in:
Zeus
2024-07-24 11:51:39 +08:00
parent 876d355b18
commit 1bf69048f3
275 changed files with 3372 additions and 1015 deletions
+24
View File
@@ -0,0 +1,24 @@
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());
}
}
}