Complete refactoring SFM App Source Code
This commit is contained in:
24
lib/product/constant/app/api_path_constant.dart
Normal file
24
lib/product/constant/app/api_path_constant.dart
Normal file
@@ -0,0 +1,24 @@
|
||||
// ignore_for_file: constant_identifier_names
|
||||
|
||||
class APIPathConstants {
|
||||
static const LOGIN_PATH = "/api/login";
|
||||
static const LOGOUT_PATH = "/api/logout";
|
||||
static const BELL_NOTIFICATIONS_PATH = "/api/notifications/bell-list";
|
||||
static const BELL_UPDATE_READ_NOTIFICATIONS_PATH =
|
||||
"/api/notifications/bell-read";
|
||||
static const DEVICE_NOTIFICATION_SETTINGS = "/api/users/my-device-settings";
|
||||
static const DASHBOARD_DEVICES = "/api/dashboard/devices";
|
||||
static const USER_PATH = "/api/users";
|
||||
static const USER_PROFILE_PATH = "/api/users/profile";
|
||||
static const PROVINCES_PATH = "/api/vn/provinces";
|
||||
static const DISTRICTS_PATH = "/api/vn/districts";
|
||||
static const WARDS_PATH = "/api/vn/wards";
|
||||
static const DEVICE_PATH = "/api/devices";
|
||||
static const DEVICE_REGISTER_PATH = "/api/devices/register";
|
||||
static const DEVICE_UNREGISTER_PATH = "/api/devices/unregister";
|
||||
static const ALL_GROUPS_PATH = "/api/groups/user";
|
||||
static const GROUPS_PATH = "/api/groups";
|
||||
static const JOIN_GROUP_PATH = "/api/groups/join";
|
||||
static const APPROVE_GROUP_PATH = "/api/groups/approve";
|
||||
static const DEVICE_LOGS_PATH = "/api/device-logs";
|
||||
}
|
||||
21
lib/product/constant/app/app_constants.dart
Normal file
21
lib/product/constant/app/app_constants.dart
Normal file
@@ -0,0 +1,21 @@
|
||||
// ignore_for_file: constant_identifier_names
|
||||
|
||||
class ApplicationConstants {
|
||||
static const APP_NAME = "Smatec SFM";
|
||||
static const DOMAIN = "sfm.smatec.com.vn";
|
||||
static const MAP_KEY = "AIzaSyDI8b-PUgKUgj5rHdtgEHCwWjUXYJrqYhE";
|
||||
static const LOGIN_PATH = "/login";
|
||||
static const LOGOUT_PATH = "/logout";
|
||||
static const HOME_PATH = "/";
|
||||
static const SETTINGS_PATH = "/settings";
|
||||
static const BELL_PATH = "/bell";
|
||||
static const DEVICES_MANAGER_PATH = "/devices-manager";
|
||||
static const DEVICES_UPDATE_PATH = "/device-update";
|
||||
static const DEVICES_DETAIL_PATH = "/device";
|
||||
static const MAP_PATH = "/map";
|
||||
static const DEVICE_LOGS_PATH = "/device-logs";
|
||||
static const GROUP_PATH = "/groups";
|
||||
static const DEVICE_NOTIFICATIONS_SETTINGS = "/device-notifications-settings";
|
||||
static const OWNER_GROUP = "owner";
|
||||
static const PARTICIPANT_GROUP = "participant";
|
||||
}
|
||||
Reference in New Issue
Block a user