2024-12-10 18:03:36 +00:00
|
|
|
import {
|
|
|
|
|
httpGetInterceptor,
|
|
|
|
|
} from "../http-config/http-interceptor-service";
|
|
|
|
|
|
2024-12-10 18:04:03 +00:00
|
|
|
export async function getKnowledgeBaseCategoryList() {
|
|
|
|
|
const url = `knowledge-base/category/list`;
|
|
|
|
|
return httpGetInterceptor(url);
|
2024-12-10 18:03:36 +00:00
|
|
|
}
|
|
|
|
|
|
2024-12-10 18:04:03 +00:00
|
|
|
export async function getKnowledgeBaseList(id: number) {
|
|
|
|
|
const url = `knowledge-base?categoryId=${id}`;
|
|
|
|
|
return httpGetInterceptor(url);
|
2024-12-10 18:03:36 +00:00
|
|
|
}
|