mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 03:21:08 +03:30
100 lines
2.8 KiB
JavaScript
Vendored
100 lines
2.8 KiB
JavaScript
Vendored
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`,
|
|
listTestType : function(filter) {
|
|
return "/TestTypes" + filter;
|
|
},
|
|
TestTypeBarcode : function(id) {
|
|
return `/TestTypes/Barcode/${id}`;
|
|
},
|
|
deleteTestType : function(id) {
|
|
return `/TestTypes/${id}`;
|
|
},
|
|
editTestType : function(id) {
|
|
return `/TestTypes/${id}/edit`;
|
|
},
|
|
updateTestType : function(id) {
|
|
return `/TestTypes/${id}`;
|
|
},
|
|
listTestResult : function(filter) {
|
|
return "/TestResults" + filter;
|
|
},
|
|
verifyTestResult : function(id) {
|
|
return `/TestResults/Verify/${id}`;
|
|
},
|
|
editTestResult : function(id) {
|
|
return `/TestResults/${id}/edit`;
|
|
},
|
|
updateTestResult : function(id) {
|
|
return `/TestResults/${id}`;
|
|
},
|
|
showTestResult : function(id) {
|
|
return `/TestResults/${id}`;
|
|
},
|
|
removeTestResult : function(id) {
|
|
return `/TestResults/${id}`;
|
|
},
|
|
listMedicalCenter : function(filter) {
|
|
return "/MedicalCenters" + filter;
|
|
},
|
|
updateMedicalCenter : function(id) {
|
|
return `/MedicalCenters/${id}`;
|
|
},
|
|
editMedicalCenter : function(id) {
|
|
return `/MedicalCenters/${id}/edit`;
|
|
},
|
|
deleteMedicalCenter : function(id) {
|
|
return `/MedicalCenters/${id}`;
|
|
},
|
|
listOpertorMedicalCenter: function(medical_center_id, filter) {
|
|
return `/Users/MedicalCenter/${medical_center_id}${filter}`;
|
|
},
|
|
listOpertor : function(filter) {
|
|
return "/Users" + filter;
|
|
},
|
|
changeStatusUser: function(userId) {
|
|
return `Users/ChangeStatus/${userId}`;
|
|
},
|
|
changeRoleUser: function(userId) {
|
|
return `Users/ChangeRole/${userId}`;
|
|
},
|
|
deleteUser: function(userId) {
|
|
return `Users/${userId}`;
|
|
},
|
|
listPackage : function(filter) {
|
|
return "/Packages" + filter;
|
|
},
|
|
showPackage : function(id) {
|
|
return `/Packages/${id}` ;
|
|
},
|
|
editPackage : function(id) {
|
|
return `/Packages/${id}/edit`;
|
|
},
|
|
updatePackage : function(id) {
|
|
return `/Packages/${id}`;
|
|
},
|
|
removePackage: function(id) {
|
|
return `Packages/${id}`;
|
|
},
|
|
verifyPackage : function(id) {
|
|
return `/Package/Verify/${id}`;
|
|
},
|
|
Barcode : function(code) {
|
|
return `/BarCode/${code}`;
|
|
},
|
|
|
|
};
|
|
export {urls}; |