feat: add Group Calendar

This commit is contained in:
pa
2025-08-21 16:29:21 +09:00
committed by Natsumi
parent f1d8d554e6
commit 99e45f1980
14 changed files with 1332 additions and 27 deletions

View File

@@ -697,6 +697,36 @@ const groupReq = {
};
return args;
});
},
getGroupCalendar(groupId) {
return request(`calendar/${groupId}`, {
method: 'GET'
});
},
/**
* @type {import('../types/api/group').GetCalendars}
*/
getGroupCalendars(date) {
return request(`calendar?date=${date}`, {
method: 'GET'
});
},
/**
* @type {import('../types/api/group').GetFollowingCalendars}
*/
getFollowingGroupCalendars(date) {
return request(`calendar/following?date=${date}`, {
method: 'GET'
});
},
getFeaturedGroupCalendars(date) {
return request(`calendar/featured?date=${date}`, {
method: 'GET'
});
}
// getRequestedGroups() {