created new repo for tag and contact category mastes

This commit is contained in:
Pramod Mahajan 2025-05-15 15:09:57 +05:30 committed by Gitea Admin
parent 40df12de86
commit cd21bc14ff

View File

@ -41,9 +41,19 @@ export const MasterRespository = {
"Activity": ( id ) => api.delete( `/api/master/activity/delete/${ id }` ),
"Application Role":(id)=>api.delete(`/api/roles/${id}`),
"Work Category": ( id ) => api.delete( `api/master/work-category/${ id }` ),
"Contact Category": ( id ) => api.delete( `/api/master/contact-category` ),
"Conatct Tag" :(id)=>api.delete("/api/master/contact-tag"),
getWorkCategory:() => api.get(`/api/master/work-categories`),
createWorkCategory: (data) => api.post(`/api/master/work-category`,data),
updateWorkCategory: ( id, data ) => api.post( `/api/master/work-category/edit/${ id }`, data ),
getContactCategory: () => api.get( `/api/master/contact-categories` ),
createContactCategory: (data ) => api.post( `/api/master/contact-category`, data ),
updateContactCategory: ( id, data ) => api.post( `/api/master/contact-category/${ id }`, data ),
getContactTag: () => api.get( `/api/master/contact-tag` ),
createContactTag: (data ) => api.post( `/api/master/contact-tag`, data ),
updateContactTag: ( id, data ) => api.post( `/api/master/contact-tag/${ id }`, data )
}