add post 自动生成CURD generate_crud 脚本
This commit is contained in:
1
web/apps/web-antd/src/models/index.ts
Normal file
1
web/apps/web-antd/src/models/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from './base';
|
||||
@@ -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/');
|
||||
}
|
||||
}
|
||||
23
web/apps/web-antd/src/models/system/post.ts
Normal file
23
web/apps/web-antd/src/models/system/post.ts
Normal 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/');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user