add post 自动生成CURD generate_crud 脚本

This commit is contained in:
xie7654
2025-07-01 11:58:13 +08:00
parent 05554eb821
commit 3bc50e79e8
24 changed files with 1663 additions and 23 deletions

View File

@@ -0,0 +1 @@
export * from './base';

View File

@@ -1,16 +0,0 @@
import { BaseModel } from '#/models/base';
export namespace SystemDictTypeApi {
export interface SystemDictType {
[key: string]: any;
id: string;
name: string;
type: string;
}
}
export class SystemDictTypeModel extends BaseModel<SystemDictTypeApi.SystemDictType> {
constructor() {
super('/system/dict_type/');
}
}

View File

@@ -0,0 +1,23 @@
import { BaseModel } from '#/models/base';
export namespace SystemPostApi {
export interface SystemPost {
id: number;
remark: string;
creator: string;
modifier: string;
update_time: string;
create_time: string;
is_deleted: boolean;
code: string;
name: string;
sort: number;
status: number;
}
}
export class SystemPostModel extends BaseModel<SystemPostApi.SystemPost> {
constructor() {
super('/system/post/');
}
}