echoes/frontend/interface/template.ts
lsy ba17778a8f 数据库:合并自定义字段和设计字段,所有限制移到应用层限制
后端:删除数据库构建需要等级,jwt添加rote信息
前端:修复post,删除插件机制,优化http
2024-12-18 21:54:37 +08:00

27 lines
537 B
TypeScript

import { HttpClient } from "core/http";
import { Serializable } from "interface/serializableType";
import React from "react";
export class Template {
private readonly http: HttpClient;
constructor(
public element: (props: {
http: HttpClient;
args: Serializable;
}) => React.ReactNode,
services?: {
http?: HttpClient;
},
) {
this.http = services?.http || HttpClient.getInstance();
}
render(args: Serializable) {
return this.element({
http: this.http,
args,
});
}
}