API Profile:

Fix:
- api create, get , edit

Types
Add:
- Type-Profile

### No Issue
This commit is contained in:
2025-08-25 17:59:07 +08:00
parent df5313a243
commit 59482ca712
17 changed files with 323 additions and 198 deletions

View File

@@ -4,5 +4,23 @@ export async function apiCreateProfile(data: any) {
const response = await apiConfig.post(`/mobile/profile`, {
data: data,
});
return response;
return response.data;
}
export async function apiProfile({ id }: { id: string }) {
const response = await apiConfig.get(`/mobile/profile/${id}`);
return response.data;
}
export async function apiUpdateProfile({
id,
data,
}: {
id: string;
data: any;
}) {
const response = await apiConfig.put(`/mobile/profile/${id}`, {
data: data,
});
return response.data;
}

View File

@@ -1,7 +1,6 @@
import { apiConfig } from "../api-config";
export async function apiUser(id: string) {
const response = await apiConfig.get(`/user/${id}`);
return response.data;
}
}