mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-13 03:11:06 +03:30
68 lines
1.9 KiB
JavaScript
Vendored
68 lines
1.9 KiB
JavaScript
Vendored
const urls = {
|
|
updateInfo : "/UpdateInfo",
|
|
getInfo : "/GetInfo",
|
|
login : "/login",
|
|
logout : "/logout",
|
|
storeMedicalCenter : "/MedicalCenters",
|
|
storeTestResult : "/TestResults",
|
|
storeTestType : "/TestTypes",
|
|
listTestTypeName : "/TestTypes/ListNames",
|
|
getInputs : `/GetInputs`,
|
|
forgotPassword : `/password/phone`,
|
|
sendVerifyCode : `/password/verifyCode`,
|
|
changePassword : `/password/reset`,
|
|
listTestType : function(page) {
|
|
return "/TestTypes?page=" + page;
|
|
},
|
|
deleteTestType : function(id) {
|
|
return `/TestTypes/${id}`;
|
|
},
|
|
editTestType : function(id) {
|
|
return `/TestTypes/${id}/edit`;
|
|
},
|
|
updateTestType : function(id) {
|
|
return `/TestTypes/${id}`;
|
|
},
|
|
listTestResult : function(page) {
|
|
return "/TestResults?page=" + page;
|
|
},
|
|
editTestResult : function(id) {
|
|
return `/TestResults/${id}/edit`;
|
|
},
|
|
updateTestResult : function(id) {
|
|
return `/TestResults/${id}`;
|
|
},
|
|
removeTestResult : function(id) {
|
|
return `/TestResults/${id}`;
|
|
},
|
|
listMedicalCenter : function(page) {
|
|
return "/MedicalCenters?page=" + page;
|
|
},
|
|
updateMedicalCenter : function(id) {
|
|
return `/MedicalCenters/${id}`;
|
|
},
|
|
editMedicalCenter : function(id) {
|
|
return `/MedicalCenters/${id}/edit`;
|
|
},
|
|
deleteMedicalCenter : function(id) {
|
|
return `/MedicalCenters/${id}`;
|
|
},
|
|
listOpertorMedicalCenter: function(id) {
|
|
return `/Users/MedicalCenter/${id}`;
|
|
},
|
|
listOpertor : function(page) {
|
|
return "/Users?page=" + page;
|
|
},
|
|
changeStatusUser: function(userId) {
|
|
return `Users/ChangeStatus/${userId}`;
|
|
},
|
|
changeRoleUser: function(userId) {
|
|
return `Users/ChangeRole/${userId}`;
|
|
},
|
|
deleteUser: function(userId) {
|
|
return `Users/${userId}`;
|
|
},
|
|
|
|
|
|
};
|
|
export {urls}; |