Collaboration

Add:
- Collaboration/GroupChatSection.tsx : fitur room chat

Fix:
- Clear code: Hapus console pada beberapa file

### No Issue
This commit is contained in:
2025-09-24 15:28:16 +08:00
parent 99f058a92f
commit 8c5602b809
12 changed files with 598 additions and 175 deletions

View File

@@ -95,7 +95,13 @@ export async function apiCollaborationCreateGroup({
}
}
export async function apiCollaborationEditData({ id, data }: { id: string; data: any }) {
export async function apiCollaborationEditData({
id,
data,
}: {
id: string;
data: any;
}) {
try {
const response = await apiConfig.put(`/mobile/collaboration/${id}`, {
data: data,
@@ -114,3 +120,32 @@ export async function apiCollaborationGroup({ id }: { id: string }) {
throw error;
}
}
export async function apiCollaborationGroupMessage({ id }: { id: string }) {
try {
const response = await apiConfig.get(`/mobile/collaboration/${id}/message`);
return response.data;
} catch (error) {
throw error;
}
}
export async function apiCollaborationGroupMessageCreate({
id,
data,
}: {
id: string;
data: any;
}) {
try {
const response = await apiConfig.post(
`/mobile/collaboration/${id}/message`,
{
data: data,
}
);
return response.data;
} catch (error) {
throw error;
}
}