feat: implement multi-tenancy governance and enhance club member management
- Bumped application version to 0.8.17, reflecting updates in both backend and frontend. - Introduced governance visibility for training plan templates and framework programs, allowing access based on visibility settings (private, club, official). - Added API endpoints for managing club members, including listing, adding, updating, and removing members. - Updated changelog to document the new features and changes made in this release.
This commit is contained in:
1 parent
c7bf7dcd9d
commit
7d476268b8
9 files changed
+501
-45
No files matched your search
@@ -174,6 +174,34 @@ export async function deleteClub(id) {
|
||||
return request(`/api/clubs/${id}`, { method: 'DELETE' })
|
||||
}
|
||||
|
||||
/** Vereinsmitglieder (API für Admin ohne eigene UI) */
|
||||
export async function listClubMembers(clubId, { includeInactive = false } = {}) {
|
||||
const q = includeInactive ? '?include_inactive=true' : ''
|
||||
return request(`/api/clubs/${clubId}/members${q}`)
|
||||
}
|
||||
|
||||
export async function getClubMember(clubId, profileId) {
|
||||
return request(`/api/clubs/${clubId}/members/${profileId}`)
|
||||
}
|
||||
|
||||
export async function addClubMember(clubId, payload) {
|
||||
return request(`/api/clubs/${clubId}/members`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(payload),
|
||||
})
|
||||
}
|
||||
|
||||
export async function updateClubMember(clubId, profileId, payload) {
|
||||
return request(`/api/clubs/${clubId}/members/${profileId}`, {
|
||||
method: 'PUT',
|
||||
body: JSON.stringify(payload),
|
||||
})
|
||||
}
|
||||
|
||||
export async function removeClubMember(clubId, profileId) {
|
||||
return request(`/api/clubs/${clubId}/members/${profileId}`, { method: 'DELETE' })
|
||||
}
|
||||
|
||||
export async function listDivisions(clubId) {
|
||||
const query = clubId ? `?club_id=${clubId}` : ''
|
||||
return request(`/api/divisions${query}`)
|
||||
@@ -1036,6 +1064,11 @@ export const api = {
|
||||
createClub,
|
||||
updateClub,
|
||||
deleteClub,
|
||||
listClubMembers,
|
||||
getClubMember,
|
||||
addClubMember,
|
||||
updateClubMember,
|
||||
removeClubMember,
|
||||
listDivisions,
|
||||
createDivision,
|
||||
updateDivision,
|
||||
|
||||
Reference in new issue
Block a user