mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 10:11:06 +03:30
nwe commit package Item
This commit is contained in:
Vendored
+73
-52
@@ -1,113 +1,134 @@
|
||||
const urls = {
|
||||
updateInfo : "/UpdateInfo",
|
||||
getInfo : "/GetInfo",
|
||||
login : "/login",
|
||||
logout : "/logout",
|
||||
storeMedicalCenter : "/MedicalCenters",
|
||||
storeTestResult : "/TestResults",
|
||||
listFilterItemsTestResult : `/TestResults/ListFilterItems`,
|
||||
statistics : `/TestResults/chart`,
|
||||
storeTestType : "/TestTypes",
|
||||
storePackage : "/Packages",
|
||||
listTestTypeName : "/TestTypes/ListNames",
|
||||
getInputs : `/GetInputs`,
|
||||
forgotPassword : `/password/phone`,
|
||||
sendVerifyCode : `/password/verifyCode`,
|
||||
changePassword : `/password/reset`,
|
||||
storeMessages : `/Messages`,
|
||||
listMessages : function(page) {
|
||||
updateInfo: "/UpdateInfo",
|
||||
getInfo: "/GetInfo",
|
||||
login: "/login",
|
||||
logout: "/logout",
|
||||
storeMedicalCenter: "/MedicalCenters",
|
||||
storeTestResult: "/TestResults",
|
||||
listFilterItemsTestResult: `/TestResults/ListFilterItems`,
|
||||
statistics: `/TestResults/chart`,
|
||||
storeTestType: "/TestTypes",
|
||||
storePackage: "/Packages",
|
||||
storeItem: "/Items",
|
||||
listTestTypeName: "/TestTypes/ListNames",
|
||||
getInputs: `/GetInputs`,
|
||||
forgotPassword: `/password/phone`,
|
||||
sendVerifyCode: `/password/verifyCode`,
|
||||
changePassword: `/password/reset`,
|
||||
storeMessages: `/Messages`,
|
||||
listMessages: function(page) {
|
||||
return `/Messages?page=${page}`;
|
||||
},
|
||||
userSearch : function(val) {
|
||||
userSearch: function(val) {
|
||||
return `/users/search?name=${val}`;
|
||||
},
|
||||
showMessages : function(user_id) {
|
||||
showMessages: function(user_id) {
|
||||
return "/Messages/" + user_id;
|
||||
},
|
||||
removeUserMessage : function(user_id) {
|
||||
removeUserMessage: function(user_id) {
|
||||
return "/Messages/User/" + user_id;
|
||||
},
|
||||
listTestType : function(filter) {
|
||||
listTestType: function(filter) {
|
||||
return "/TestTypes" + filter;
|
||||
},
|
||||
TestTypeBarcode : function(id) {
|
||||
return `/TestTypes/Barcode/${id}`;
|
||||
TestTypeBarcode: function(id) {
|
||||
return `/TestTypes/Barcode/${id}`;
|
||||
},
|
||||
deleteTestType : function(id) {
|
||||
deleteTestType: function(id) {
|
||||
return `/TestTypes/${id}`;
|
||||
},
|
||||
editTestType : function(id) {
|
||||
editTestType: function(id) {
|
||||
return `/TestTypes/${id}/edit`;
|
||||
},
|
||||
updateTestType : function(id) {
|
||||
updateTestType: function(id) {
|
||||
return `/TestTypes/${id}`;
|
||||
},
|
||||
listTestResult : function(filter) {
|
||||
listTestResult: function(filter) {
|
||||
return "/TestResults" + filter;
|
||||
},
|
||||
verifyTestResult : function(id) {
|
||||
verifyTestResult: function(id) {
|
||||
return `/TestResults/Verify/${id}`;
|
||||
},
|
||||
editTestResult : function(id) {
|
||||
editTestResult: function(id) {
|
||||
return `/TestResults/${id}/edit`;
|
||||
},
|
||||
updateTestResult : function(id) {
|
||||
updateTestResult: function(id) {
|
||||
return `/TestResults/${id}`;
|
||||
},
|
||||
showTestResult : function(id) {
|
||||
showTestResult: function(id) {
|
||||
return `/TestResults/${id}`;
|
||||
},
|
||||
removeTestResult : function(id) {
|
||||
removeTestResult: function(id) {
|
||||
return `/TestResults/${id}`;
|
||||
},
|
||||
listMedicalCenter : function(filter) {
|
||||
listMedicalCenter: function(filter) {
|
||||
return "/MedicalCenters" + filter;
|
||||
},
|
||||
updateMedicalCenter : function(id) {
|
||||
updateMedicalCenter: function(id) {
|
||||
return `/MedicalCenters/${id}`;
|
||||
},
|
||||
editMedicalCenter : function(id) {
|
||||
editMedicalCenter: function(id) {
|
||||
return `/MedicalCenters/${id}/edit`;
|
||||
},
|
||||
deleteMedicalCenter : function(id) {
|
||||
deleteMedicalCenter: function(id) {
|
||||
return `/MedicalCenters/${id}`;
|
||||
},
|
||||
listOpertorMedicalCenter: function(medical_center_id, filter) {
|
||||
return `/Users/MedicalCenter/${medical_center_id}${filter}`;
|
||||
return `/Users/MedicalCenter/${medical_center_id}${filter}`;
|
||||
},
|
||||
listOpertor : function(filter) {
|
||||
listOpertor: function(filter) {
|
||||
return "/Users" + filter;
|
||||
},
|
||||
changeStatusUser: function(userId) {
|
||||
return `Users/ChangeStatus/${userId}`;
|
||||
return `Users/ChangeStatus/${userId}`;
|
||||
},
|
||||
changeRoleUser: function(userId) {
|
||||
return `Users/ChangeRole/${userId}`;
|
||||
return `Users/ChangeRole/${userId}`;
|
||||
},
|
||||
deleteUser: function(userId) {
|
||||
return `Users/${userId}`;
|
||||
return `Users/${userId}`;
|
||||
},
|
||||
listPackage : function(filter) {
|
||||
listPackage: function(filter) {
|
||||
return "/Packages" + filter;
|
||||
},
|
||||
showPackage : function(id) {
|
||||
return `/Packages/${id}` ;
|
||||
showPackage: function(id) {
|
||||
return `/Packages/${id}`;
|
||||
},
|
||||
editPackage : function(id) {
|
||||
editPackage: function(id) {
|
||||
return `/Packages/${id}/edit`;
|
||||
},
|
||||
updatePackage : function(id) {
|
||||
updatePackage: function(id) {
|
||||
return `/Packages/${id}`;
|
||||
},
|
||||
removePackage: function(id) {
|
||||
return `Packages/${id}`;
|
||||
return `Packages/${id}`;
|
||||
},
|
||||
verifyPackage : function(id) {
|
||||
verifyPackage: function(id) {
|
||||
return `/Package/Verify/${id}`;
|
||||
},
|
||||
Barcode : function(code) {
|
||||
return `/BarCode/${code}`;
|
||||
listItem: function(filter) {
|
||||
return "/Items" + filter;
|
||||
},
|
||||
|
||||
listAllItem: function() {
|
||||
return "/GetItems";
|
||||
},
|
||||
showItem: function(id) {
|
||||
return `/Items/${id}`;
|
||||
},
|
||||
editItem: function(id) {
|
||||
return `/Items/${id}/edit`;
|
||||
},
|
||||
updateItem: function(id) {
|
||||
return `/Items/${id}`;
|
||||
},
|
||||
removeItem: function(id) {
|
||||
return `Items/${id}`;
|
||||
},
|
||||
verifyItem: function(id) {
|
||||
return `/Item/Verify/${id}`;
|
||||
},
|
||||
Barcode: function(code) {
|
||||
return `/BarCode/${code}`;
|
||||
}
|
||||
};
|
||||
export {urls};
|
||||
export { urls };
|
||||
|
||||
Reference in New Issue
Block a user