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
5967dcaa
Unverified
Commit
5967dcaa
authored
Sep 17, 2019
by
bianxin
Committed by
GitHub
Sep 17, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改AbstractController模板
会在在3.0.6版本中更新
parent
1ab6c644
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
AbstractController.ftl
src/main/resources/freemarker/ftl/AbstractController.ftl
+2
-2
No files found.
src/main/resources/freemarker/ftl/AbstractController.ftl
View file @
5967dcaa
...
...
@@ -47,7 +47,7 @@ public class AbstractController<S extends IService<T>,T>{
@
ApiOperation
(
value
=
"获取对象"
,
notes
=
"作者:${author}"
)
@
ApiImplicitParam
(
paramType
=
"path"
,
name
=
"id"
,
value
=
"对象id"
,
required
=
true
,
dataType
=
"Long"
)
</#
if
>
public
JsonResult
<
T
>
get
User
ById
(@
PathVariable
(
"id"
)
Long
id
){
public
JsonResult
<
T
>
getById
(@
PathVariable
(
"id"
)
Long
id
){
T
obj
=
baseService
.
getById
(
id
);
if
(
null
!=obj ) {
result
.
success
(
obj
);
...
...
@@ -148,7 +148,7 @@ public class AbstractController<S extends IService<T>,T>{
<#
if
isSwagger
==
"true"
>
@
ApiOperation
(
value
=
"分页查询"
,
notes
=
"分页查询返回[IPage<T>],作者:边鹏"
)
</#
if
>
public
JsonResult
<
IPage
<
T
>>
get
User
Pages
(
PageParam
<
T
>
param
){
public
JsonResult
<
IPage
<
T
>>
getPages
(
PageParam
<
T
>
param
){
JsonResult
<
IPage
<
T
>>
returnPage
=
new
JsonResult
<
IPage
<
T
>>();
Page
<
T
>
page
=
new
Page
<
T
>(
param
.
getPageNum
(),
param
.
getPageSize
());
QueryWrapper
<
T
>
queryWrapper
=
new
QueryWrapper
<
T
>();
...
...
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