2024-03-18 13:23:58 +08:00
|
|
|
import 'package:get/get.dart';
|
2024-04-09 08:31:17 +08:00
|
|
|
import 'package:sk_base_mobile/models/user_info.model.dart';
|
2024-04-10 17:38:23 +08:00
|
|
|
import 'package:sk_base_mobile/router/auth_middleware.dart';
|
2024-04-09 08:31:17 +08:00
|
|
|
import 'package:sk_base_mobile/screens/hr_manage/components/employee_detail.dart';
|
2024-04-08 13:50:23 +08:00
|
|
|
import 'package:sk_base_mobile/screens/hr_manage/hr_manage.dart';
|
2024-03-27 11:06:01 +08:00
|
|
|
import 'package:sk_base_mobile/screens/inventory/inventory.dart';
|
2024-03-18 13:23:58 +08:00
|
|
|
import 'package:sk_base_mobile/screens/login/login.dart';
|
2024-04-01 08:41:52 +08:00
|
|
|
import 'package:sk_base_mobile/screens/sale_quotation/sale_quotation.dart';
|
2024-03-18 13:23:58 +08:00
|
|
|
|
2024-03-19 11:09:07 +08:00
|
|
|
import '../screens/landing/landing.dart';
|
2024-03-18 13:23:58 +08:00
|
|
|
import '../screens/mine/useinfo/userinfo.dart';
|
|
|
|
|
|
|
|
class RouteConfig {
|
|
|
|
static const String home = "/";
|
|
|
|
static const String login = '/login';
|
|
|
|
static const String userinfo = '/userinfo';
|
2024-04-10 17:38:23 +08:00
|
|
|
static const String inventory = '/workbench/inventory';
|
2024-04-10 17:08:26 +08:00
|
|
|
static const String saleQuotation = '/workbench/sale_quotation';
|
|
|
|
static const String hrManage = '/workbench/hr_manage';
|
2024-04-09 08:31:17 +08:00
|
|
|
static const String employeeDetail = '/employee_detail';
|
2024-04-01 08:41:52 +08:00
|
|
|
|
2024-03-18 13:23:58 +08:00
|
|
|
static final List<GetPage> getPages = [
|
2024-04-10 17:38:23 +08:00
|
|
|
GetPage(
|
|
|
|
name: login,
|
|
|
|
page: () => LoginScreen(),
|
|
|
|
),
|
2024-03-18 13:23:58 +08:00
|
|
|
GetPage(name: home, page: () => LandingPage()),
|
|
|
|
GetPage(name: userinfo, page: () => UserInfoPage()),
|
2024-04-10 17:38:23 +08:00
|
|
|
GetPage(
|
|
|
|
name: inventory,
|
|
|
|
page: () => const InventoryPage(),
|
|
|
|
middlewares: [
|
|
|
|
// AuthMiddleware(), // 使用拦截器
|
|
|
|
],
|
|
|
|
),
|
|
|
|
GetPage(
|
|
|
|
name: saleQuotation,
|
|
|
|
page: () => SaleQuotationPage(),
|
|
|
|
middlewares: [
|
|
|
|
// AuthMiddleware(), // 使用拦截器
|
|
|
|
],
|
|
|
|
),
|
|
|
|
GetPage(
|
|
|
|
name: hrManage,
|
|
|
|
page: () => HrManagePage(),
|
|
|
|
middlewares: [
|
|
|
|
// AuthMiddleware(), // 使用拦截器
|
|
|
|
],
|
|
|
|
),
|
|
|
|
GetPage(
|
|
|
|
name: employeeDetail,
|
|
|
|
page: () => EmployeeDetail(),
|
|
|
|
middlewares: [
|
|
|
|
// AuthMiddleware(), // 使用拦截器
|
|
|
|
],
|
|
|
|
)
|
2024-03-18 13:23:58 +08:00
|
|
|
];
|
|
|
|
}
|