Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
1c8c8da5
Commit
1c8c8da5
authored
Nov 12, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
接口文档的支持
parent
602a93df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
2 deletions
+24
-2
IPageSizeData.java
.../src/main/java/com/yanzuoguang/util/vo/IPageSizeData.java
+19
-0
PageSizeData.java
...e/src/main/java/com/yanzuoguang/util/vo/PageSizeData.java
+5
-2
No files found.
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/IPageSizeData.java
0 → 100755
View file @
1c8c8da5
package
com
.
yanzuoguang
.
util
.
vo
;
import
java.util.List
;
/**
* 查询时分页请求接口
*
* @author 颜佐光
*/
public
interface
IPageSizeData
<
T
>
extends
PageSizeReq
{
int
getPageTotal
();
void
setPageTotal
(
int
pageTotal
);
List
<
T
>
getList
();
void
setList
(
List
<
T
>
list
);
}
yzg-util-base/src/main/java/com/yanzuoguang/util/vo/PageSizeData.java
View file @
1c8c8da5
package
com
.
yanzuoguang
.
util
.
vo
;
package
com
.
yanzuoguang
.
util
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
io.swagger.annotations.ApiModelProperty
;
import
java.util.ArrayList
;
import
java.util.ArrayList
;
...
@@ -11,7 +10,7 @@ import java.util.List;
...
@@ -11,7 +10,7 @@ import java.util.List;
*
*
* @author 颜佐光
* @author 颜佐光
*/
*/
public
class
PageSizeData
<
T
extends
Object
>
extends
PageSizeReqVo
{
public
class
PageSizeData
<
T
extends
Object
>
extends
PageSizeReqVo
implements
IPageSizeData
<
T
>
{
private
static
final
long
serialVersionUID
=
-
8424119556188973873L
;
private
static
final
long
serialVersionUID
=
-
8424119556188973873L
;
/**
/**
...
@@ -26,18 +25,22 @@ public class PageSizeData<T extends Object> extends PageSizeReqVo {
...
@@ -26,18 +25,22 @@ public class PageSizeData<T extends Object> extends PageSizeReqVo {
@ApiModelProperty
(
value
=
"当前页的数据"
,
required
=
true
)
@ApiModelProperty
(
value
=
"当前页的数据"
,
required
=
true
)
private
List
<
T
>
list
=
new
ArrayList
<
T
>();
private
List
<
T
>
list
=
new
ArrayList
<
T
>();
@Override
public
int
getPageTotal
()
{
public
int
getPageTotal
()
{
return
pageTotal
;
return
pageTotal
;
}
}
@Override
public
void
setPageTotal
(
int
pageTotal
)
{
public
void
setPageTotal
(
int
pageTotal
)
{
this
.
pageTotal
=
pageTotal
;
this
.
pageTotal
=
pageTotal
;
}
}
@Override
public
List
<
T
>
getList
()
{
public
List
<
T
>
getList
()
{
return
list
;
return
list
;
}
}
@Override
public
void
setList
(
List
<
T
>
list
)
{
public
void
setList
(
List
<
T
>
list
)
{
this
.
list
=
list
;
this
.
list
=
list
;
}
}
...
...
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