comment + favorive

This commit is contained in:
hamid zarghami
2025-09-17 12:29:58 +03:30
parent bc22bbd6d9
commit f849ebdb42
15 changed files with 562 additions and 85 deletions
+12
View File
@@ -5,6 +5,8 @@ import {
UpdateProfileResponse,
AddressLocationResponse,
UpdateAddressType,
WishlistResponse,
CommentsResponse,
} from "../types/ProfileTypes";
export const getProfile = async () => {
@@ -31,3 +33,13 @@ export const updateAddress = async (addressData: UpdateAddressType) => {
const { data } = await axios.post("/address/user/save", addressData);
return data;
};
export const getWithList = async (): Promise<WishlistResponse> => {
const { data } = await axios.get("/user/profile/wishlist");
return data;
};
export const getComments = async (): Promise<CommentsResponse> => {
const { data } = await axios.get("/user/profile/comments");
return data;
};