mt-flowbite-react
Version:
Official React components built for Flowbite and Tailwind CSS
21 lines (20 loc) • 707 B
JavaScript
import { AuthService } from "./auth.service";
import { ResFormService } from "./mtform.service";
import { RenderService } from "./render.service";
import { ResService } from "./res.service";
import { ResViewService } from "./resView.service";
import { ViewService } from "./view.service";
/**
* 前后端共用 的构造mtmClient 实例。
* @returns
*/
export const NewMtmClient = (accessToken) => {
return ({
auth: new AuthService(accessToken),
resView: new ResViewService(accessToken),
refForm: new ResFormService(accessToken),
res: new ResService(accessToken),
render: new RenderService(accessToken),
view: new ViewService(accessToken),
});
};