File tree Expand file tree Collapse file tree 6 files changed +127
-172
lines changed Expand file tree Collapse file tree 6 files changed +127
-172
lines changed Original file line number Diff line number Diff line change 1
1
import request from '@/config/axios'
2
- import type { CodegenUpdateReqVO , CodegenCreateListReqVO } from './types'
2
+
3
+ export type CodegenTableVO = {
4
+ id : number
5
+ tableId : number
6
+ isParentMenuIdValid : boolean
7
+ dataSourceConfigId : number
8
+ scene : number
9
+ tableName : string
10
+ tableComment : string
11
+ remark : string
12
+ moduleName : string
13
+ businessName : string
14
+ className : string
15
+ classComment : string
16
+ author : string
17
+ createTime : Date
18
+ updateTime : Date
19
+ templateType : number
20
+ parentMenuId : number
21
+ }
22
+
23
+ export type CodegenColumnVO = {
24
+ id : number
25
+ tableId : number
26
+ columnName : string
27
+ dataType : string
28
+ columnComment : string
29
+ nullable : number
30
+ primaryKey : number
31
+ autoIncrement : string
32
+ ordinalPosition : number
33
+ javaType : string
34
+ javaField : string
35
+ dictType : string
36
+ example : string
37
+ createOperation : number
38
+ updateOperation : number
39
+ listOperation : number
40
+ listOperationCondition : string
41
+ listOperationResult : number
42
+ htmlType : string
43
+ }
44
+
45
+ export type DatabaseTableVO = {
46
+ name : string
47
+ comment : string
48
+ }
49
+
50
+ export type CodegenDetailVO = {
51
+ table : CodegenTableVO
52
+ columns : CodegenColumnVO [ ]
53
+ }
54
+
55
+ export type CodegenPreviewVO = {
56
+ filePath : string
57
+ code : string
58
+ }
59
+
60
+ export type CodegenUpdateReqVO = {
61
+ table : CodegenTableVO | any
62
+ columns : CodegenColumnVO [ ]
63
+ }
64
+
65
+ export type CodegenCreateListReqVO = {
66
+ dataSourceConfigId : number
67
+ tableNames : string [ ]
68
+ }
3
69
4
70
// 查询列表代码生成表定义
5
- export const getCodegenTablePage = ( params ) => {
71
+ export const getCodegenTablePage = ( params : PageParam ) => {
6
72
return request . get ( { url : '/infra/codegen/table/page' , params } )
7
73
}
8
74
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -298,8 +298,7 @@ export default {
298
298
typeUpdate : '字典类型编辑' ,
299
299
dataCreate : '字典数据新增' ,
300
300
dataUpdate : '字典数据编辑' ,
301
- fileUpload : '上传文件' ,
302
- back : '返回'
301
+ fileUpload : '上传文件'
303
302
} ,
304
303
dialog : {
305
304
dialog : '弹窗' ,
Original file line number Diff line number Diff line change 16
16
<el-button type =" primary" @click =" submitForm" :loading =" submitLoading" >
17
17
{{ t('action.save') }}
18
18
</el-button >
19
- <el-button @click =" close" >{{ t('action.back') }} </el-button >
19
+ <el-button @click =" close" >返回 </el-button >
20
20
</el-form-item >
21
21
</el-form >
22
22
</content-wrap >
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments