Structor CSSD

This commit is contained in:
saeid
2019-04-25 20:14:09 +04:30
parent fc162db99b
commit 14a91bdef7
72 changed files with 6957 additions and 4636 deletions
+38
View File
@@ -1,7 +1,45 @@
const urls = {
storeTestType : "/TestTypes",
updateInfo : "/UpdateInfo",
getInfo : "/GetInfo",
login : "/login",
logout : "/logout",
storeMedicalCenter : "/MedicalCenters",
listOpertor : "/Users",
listMedicalCenter : function(page) {
return "/MedicalCenters?page=" + page;
},
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}`;
},
updateMedicalCenter : function(id) {
return `/MedicalCenters/${id}`;
},
deleteMedicalCenter : function(id) {
return `/MedicalCenters/${id}`;
},
listOpertorMedicalCenter: function(id) {
return `/Users/MedicalCenter/${id}`;
},
changeStatusUser: function(userId) {
return `Users/ChangeStatus/${userId}`;
},
changeRoleUser: function(userId) {
return `Users/ChangeRole/${userId}`;
},
deleteUser: function(userId) {
return `Users/${userId}`;
},
};
export {urls};