这个好像没有封装到 publicApiClient 里,暂时你可以这样:
import { CategoryV1alpha1PublicApi } from "@halo-dev/api-client";
const axiosInstance = axios.create({
baseURL: "https://example.com",
});
const categoryPublicApi = new CategoryV1alpha1PublicApi(
undefined,
axiosInstance.defaults.baseURL,
axiosInstance
);
categoryPublicApi
.queryPostsByCategoryName({
name: "foo",
})
.then((response) => {});