mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-13 03:18:57 +03:30
commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
class Routes{
|
||||
static const cycleAddScreen = '/CycleAddScreen';
|
||||
static const cycleDetailScreen = '/CycleDetailScreen';
|
||||
static const cycleFilterScreen = '/CycleFilterScreen';
|
||||
static const cycleResultScreen = '/CycleResultScreen';
|
||||
static const cycleScanScreen = '/CycleScanScreen';
|
||||
static const homePage = '/HomePage';
|
||||
static const labelAddScreen = '/LabelAddScreen';
|
||||
static const labelDetailScreen = '/LabelDetailScreen';
|
||||
static const labelFilterScreen = '/LabelFilterScreen';
|
||||
static const labelResultScreen = '/LabelResultScreen';
|
||||
static const labelScanScreen = '/LabelScanScreen';
|
||||
static const loginScreen = '/LoginScreen';
|
||||
static const myInfoScreen = '/MyInfoScreen';
|
||||
static const testResultAddScreen = '/TestResultAddScreen';
|
||||
static const testDetailsScreen = '/TestDetailsScreen';
|
||||
static const testFilterScreen = '/TestFilterScreen';
|
||||
static const testResultScreen = '/TestResultScreen';
|
||||
static const testVerifyScreen = '/TestVerifyScreen';
|
||||
}
|
||||
@@ -0,0 +1,65 @@
|
||||
class Url {
|
||||
static const String baseUrl = 'https://www.cssd-doc.com/api';
|
||||
|
||||
static const String login = '$baseUrl/login';
|
||||
|
||||
static const String getInputs = '$baseUrl/GetInputs';
|
||||
|
||||
static const String getUserInfo = '$baseUrl/GetInfo';
|
||||
|
||||
// static const String testResults = '$baseUrl/TestResults';
|
||||
|
||||
static const String filterItems = '$baseUrl/TestResults/ListFilterItems';
|
||||
|
||||
static const String labelItems = '$baseUrl/GetLabels';
|
||||
|
||||
static const String packageItems = '$baseUrl/GetPackages';
|
||||
|
||||
static String testResults(int id) {
|
||||
return '$baseUrl/TestResults?page=$id';
|
||||
}
|
||||
|
||||
static String labelResults(int id) {
|
||||
return '$baseUrl/Labels?page=$id';
|
||||
}
|
||||
|
||||
static String cycleResults(int id) {
|
||||
return '$baseUrl/Cycles?page=$id';
|
||||
}
|
||||
// static const String cycleResults = '$baseUrl/Cycles';
|
||||
|
||||
static String verifyTest(int id) {
|
||||
return '$baseUrl/TestResults/Verify/$id';
|
||||
}
|
||||
|
||||
static String testResultFormValues(String id) {
|
||||
return '$baseUrl/TestResults/$id/edit';
|
||||
}
|
||||
|
||||
static String updateTestResult(String id) {
|
||||
return '$baseUrl/TestResults/$id';
|
||||
}
|
||||
|
||||
static const String createTestResult = '$baseUrl/TestResults';
|
||||
|
||||
static const String createCycleResult = '$baseUrl/Cycles';
|
||||
|
||||
static const String createLabelResult = '$baseUrl/Labels';
|
||||
|
||||
|
||||
static String getTestResult(String id) {
|
||||
return '$baseUrl/TestResults/$id';
|
||||
}
|
||||
|
||||
static String getLabelResult(String id) {
|
||||
return '$baseUrl/Labels/$id';
|
||||
}
|
||||
|
||||
static String getCycleResult(String id) {
|
||||
return '$baseUrl/Cycles/$id';
|
||||
}
|
||||
|
||||
static String removeTestResult(String id) {
|
||||
return '$baseUrl/TestResults/$id';
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
class User {
|
||||
static String _token;
|
||||
|
||||
static String get token {
|
||||
return 'Bearer ' + User._token;
|
||||
}
|
||||
|
||||
static set token (String token) {
|
||||
User._token = token;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user