Group events on group dialog

This commit is contained in:
Natsumi
2025-11-19 01:41:53 +11:00
parent b1d661c086
commit 69848b6fdc
7 changed files with 173 additions and 11 deletions

View File

@@ -702,6 +702,33 @@ const groupReq = {
getGroupCalendar(groupId) {
return request(`calendar/${groupId}`, {
method: 'GET'
}).then((json) => {
const args = {
json,
params: {
groupId
}
};
return args;
});
},
/**
* @param {{
groupId: string,
eventId: string
}} params
* @return { Promise<{json: any, params}> }
*/
getGroupCalendarEvent(params) {
return request(`calendar/${params.groupId}/${params.eventId}`, {
method: 'GET'
}).then((json) => {
const args = {
json,
params
};
return args;
});
},