import { client } from "@/shared/api"; import { AS_DASHBOARD_BBS_ID, ENDPOINT } from "@/shared/config"; import { PostService, UserPostListResponse, UserPostSearchParams } from "../model/post-interface"; async function getUserPostList(params?: UserPostSearchParams): Promise { const response = await client.get( `${ENDPOINT.BOARD_SERVICE.POSTS}/user/${AS_DASHBOARD_BBS_ID}`, { params }, ); return response.data; } export const postApi: PostService = { getUserPostList, };