Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
不是太高的手
SPTools
提交
7b64f4c6
S
SPTools
项目概览
不是太高的手
/
SPTools
通知
4
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
SPTools
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
7b64f4c6
编写于
9月 02, 2020
作者:
Z
zhipeng.zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化信息提示
上级
2b485dae
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
4 addition
and
20 deletion
+4
-20
src/main/java/com/tools/module/app/web/GenController.java
src/main/java/com/tools/module/app/web/GenController.java
+2
-2
src/main/resources/templates/app/gen/form.html
src/main/resources/templates/app/gen/form.html
+1
-1
src/main/resources/templates/weChat/user/list.html
src/main/resources/templates/weChat/user/list.html
+1
-17
未找到文件。
src/main/java/com/tools/module/app/web/GenController.java
浏览文件 @
7b64f4c6
...
...
@@ -72,7 +72,7 @@ public class GenController {
* @throws TemplateException
*/
@PostMapping
(
"/create"
)
public
Result
create
(
@RequestBody
AppGen
gen
)
throws
IOException
,
TemplateException
{
public
Result
create
(
@RequestBody
AppGen
gen
){
/**
* 获取表字段以及注释
*/
...
...
@@ -140,7 +140,7 @@ public class GenController {
* 生成后端代码 controller 实现
*/
createCode
(
"java/controller.ftl"
,
gen
,
controllerFile
);
return
Result
.
ok
();
return
Result
.
ok
(
filePath
);
}
/**
...
...
src/main/resources/templates/app/gen/form.html
浏览文件 @
7b64f4c6
...
...
@@ -43,7 +43,7 @@ var vm = new Vue({
param
:
vm
.
gen
,
json
:
true
,
success
:
function
(
result
)
{
vm
.
okLayer
.
msg
.
greenLaugh
(
"
代码生成路径:
"
+
result
.
msg
)
}
});
},
...
...
src/main/resources/templates/weChat/user/list.html
浏览文件 @
7b64f4c6
...
...
@@ -80,26 +80,10 @@ layui.use(["okUtils", "okLayer"], function () {
},{
title
:
'
操作
'
,
key
:
'
action
'
,
minWidth
:
3
00
,
minWidth
:
1
00
,
align
:
'
center
'
,
render
:
function
(
h
,
params
)
{
var
functionList
=
[];
var
edit
=
h
(
'
Button
'
,
{
props
:
{
type
:
'
primary
'
,
size
:
'
small
'
,
icon
:
'
md-create
'
},
style
:
{
marginRight
:
'
8px
'
},
on
:
{
click
:
function
()
{
vm
.
edit
(
params
.
row
);
}
}
},
'
修改
'
);
functionList
.
push
(
edit
);
var
remove
=
h
(
'
Button
'
,
{
props
:
{
type
:
'
primary
'
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录