mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-04-24 23:47:17 +08:00
15 lines
400 B
TypeScript
15 lines
400 B
TypeScript
import { http } from "@/utils/http";
|
|
import { type ApiAbstract, VersionEntity } from "@/utils/http/ApiAbstract";
|
|
import { baseUrlApi } from "../utils";
|
|
|
|
export class Generator extends VersionEntity {
|
|
name: string;
|
|
content: string;
|
|
}
|
|
export const get = (tableName, type) => {
|
|
return http.request<ApiAbstract<Generator>>(
|
|
"post",
|
|
baseUrlApi("generator/") + tableName + "/" + type
|
|
);
|
|
};
|