[common/features] refactor: 통합 검색 기능 공통 기능으로 변경

This commit is contained in:
2025-08-02 02:42:20 +09:00
parent 98cc45162d
commit aabd810571
17 changed files with 126 additions and 43 deletions
@@ -0,0 +1,21 @@
import { client } from "@/shared/api";
import type {
SearchParams,
SearchResult,
SearchService,
} from "../model/search-interface";
import { ENDPOINT } from "@/shared/config";
export class SearchApiService implements SearchService {
public async searchPost(params: SearchParams): Promise<SearchResult> {
const response = await client.get<SearchResult>(
ENDPOINT.BOARD_SERVICE.SEARCH_POST,
{
params,
},
);
return response.data;
}
}
export const SearchApi = new SearchApiService();