feat(m1): add project stakeholder CRUD

This commit is contained in:
2026-05-25 14:46:30 +08:00
parent 4bbf1f552f
commit e96383433d
9 changed files with 553 additions and 6 deletions
@@ -437,3 +437,16 @@ export function updateJsonTemplate(id, body) {
export function deleteJsonTemplate(id) {
return axios.delete(`/api/v1/integration/json-templates/${id}`);
}
export function listStakeholders(projectId) {
return axios.get(`/api/v1/projects/${projectId}/stakeholders`);
}
export function addStakeholder(projectId, body) {
return axios.post(`/api/v1/projects/${projectId}/stakeholders`, body);
}
export function updateStakeholder(projectId, id, body) {
return axios.put(`/api/v1/projects/${projectId}/stakeholders/${id}`, body);
}
export function deleteStakeholder(projectId, id) {
return axios.delete(`/api/v1/projects/${projectId}/stakeholders/${id}`);
}