Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ydl-generator
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
余保谷
ydl-generator
Commits
26c41017
Commit
26c41017
authored
Sep 17, 2019
by
dt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模板修改:更新版本3.0.6
parent
5967dcaa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
AbstractController.ftl
src/main/resources/freemarker/ftl/AbstractController.ftl
+10
-10
controller.ftl
src/main/resources/freemarker/ftl/controller.ftl
+1
-0
No files found.
src/main/resources/freemarker/ftl/AbstractController.ftl
View file @
26c41017
...
@@ -26,8 +26,8 @@ import io.swagger.annotations.ApiOperation;
...
@@ -26,8 +26,8 @@ import io.swagger.annotations.ApiOperation;
*
*
*
<
p
>
说明:
${
entityComment
}
API
接口层
</
P
>
*
<
p
>
说明:
${
entityComment
}
API
接口层
</
P
>
*
@
version
:
${
version
}
*
@
version
:
${
version
}
*
@
author
:
${
author
}
*
@
author
:
${
author
}
*
*
@
time
${
createTime
}
*/
*/
public
class
AbstractController
<
S
extends
IService
<
T
>,
T
>{
public
class
AbstractController
<
S
extends
IService
<
T
>,
T
>{
...
@@ -40,7 +40,7 @@ public class AbstractController<S extends IService<T>,T>{
...
@@ -40,7 +40,7 @@ public class AbstractController<S extends IService<T>,T>{
*
@
param
对象参数:
id
*
@
param
对象参数:
id
*
@
return
JsonResult
*
@
return
JsonResult
*
@
author
${
author
}
*
@
author
${
author
}
*
@
time
2019
年
4
月
9
日
*
@
time
${
createTime
}
*/
*/
@
GetMapping
(
"/getById/{id}"
)
@
GetMapping
(
"/getById/{id}"
)
<#
if
isSwagger
==
"true"
>
<#
if
isSwagger
==
"true"
>
...
@@ -62,7 +62,7 @@ public class AbstractController<S extends IService<T>,T>{
...
@@ -62,7 +62,7 @@ public class AbstractController<S extends IService<T>,T>{
*
@
param
对象参数:
id
*
@
param
对象参数:
id
*
@
return
JsonResult
*
@
return
JsonResult
*
@
author
${
author
}
*
@
author
${
author
}
*
@
time
2019
年
4
月
9
日
*
@
time
${
createTime
}
*/
*/
@
PostMapping
(
"/deleteById"
)
@
PostMapping
(
"/deleteById"
)
<#
if
isSwagger
==
"true"
>
<#
if
isSwagger
==
"true"
>
...
@@ -90,7 +90,7 @@ public class AbstractController<S extends IService<T>,T>{
...
@@ -90,7 +90,7 @@ public class AbstractController<S extends IService<T>,T>{
*
@
param
对象参数:
T
*
@
param
对象参数:
T
*
@
return
Boolean
*
@
return
Boolean
*
@
author
${
author
}
*
@
author
${
author
}
*
@
time
2019
年
4
月
9
日
*
@
time
${
createTime
}
*/
*/
@
PostMapping
(
"/insert"
)
@
PostMapping
(
"/insert"
)
<#
if
isSwagger
==
"true"
>
<#
if
isSwagger
==
"true"
>
...
@@ -116,7 +116,7 @@ public class AbstractController<S extends IService<T>,T>{
...
@@ -116,7 +116,7 @@ public class AbstractController<S extends IService<T>,T>{
*
@
param
对象参数:
T
*
@
param
对象参数:
T
*
@
return
Boolean
*
@
return
Boolean
*
@
author
${
author
}
*
@
author
${
author
}
*
@
time
2019
年
4
月
9
日
*
@
time
${
createTime
}
*/
*/
@
PostMapping
(
"/update"
)
@
PostMapping
(
"/update"
)
<#
if
isSwagger
==
"true"
>
<#
if
isSwagger
==
"true"
>
...
@@ -139,14 +139,14 @@ public class AbstractController<S extends IService<T>,T>{
...
@@ -139,14 +139,14 @@ public class AbstractController<S extends IService<T>,T>{
/**
/**
*
@
explain
分页条件查询用户
*
@
explain
分页条件查询用户
*
@
param
对象参数:
AppPage
<
User
>
*
@
param
对象参数:
AppPage
<
${
entityName
}
>
*
@
return
PageInfo
<
User
>
*
@
return
PageInfo
<
${
entityName
}
>
*
@
author
${
author
}
*
@
author
${
author
}
*
@
time
2019
年
5
月
20
日
*
@
time
${
createTime
}
*/
*/
@
GetMapping
(
"/getPages"
)
@
GetMapping
(
"/getPages"
)
<#
if
isSwagger
==
"true"
>
<#
if
isSwagger
==
"true"
>
@
ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询返回[IPage<T>],作者:
边鹏
"
)
@
ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询返回[IPage<T>],作者:
${author}
"
)
</#
if
>
</#
if
>
public
JsonResult
<
IPage
<
T
>>
getPages
(
PageParam
<
T
>
param
){
public
JsonResult
<
IPage
<
T
>>
getPages
(
PageParam
<
T
>
param
){
JsonResult
<
IPage
<
T
>>
returnPage
=
new
JsonResult
<
IPage
<
T
>>();
JsonResult
<
IPage
<
T
>>
returnPage
=
new
JsonResult
<
IPage
<
T
>>();
...
...
src/main/resources/freemarker/ftl/controller.ftl
View file @
26c41017
...
@@ -22,6 +22,7 @@ import org.slf4j.LoggerFactory;
...
@@ -22,6 +22,7 @@ import org.slf4j.LoggerFactory;
*
<
p
>
说明:
${
entityComment
}
API
接口层
</
P
>
*
<
p
>
说明:
${
entityComment
}
API
接口层
</
P
>
*
@
version
:
${
version
}
*
@
version
:
${
version
}
*
@
author
:
${
author
}
*
@
author
:
${
author
}
*
@
time
${
createTime
}
*
*
*/
*/
<#
if
isSwagger
==
"true"
>
<#
if
isSwagger
==
"true"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment