-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
34 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
- 概念变更,响应改为结果,即 Response -> Result | ||
- 对分页返回参数进行调整 | ||
- 新增列表模板类 `ListTemplate` | ||
|
||
## v2.6.0 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package com.fengwenyi.api.result; | ||
|
||
import java.io.Serializable; | ||
import java.util.List; | ||
|
||
/** | ||
* @author <a href="https://fengwenyi.com">Erwin Feng</a> | ||
* @since 2022-06-13 | ||
*/ | ||
public class ListTemplate<T> implements Serializable { | ||
|
||
private static final long serialVersionUID = 1673060065136736928L; | ||
|
||
/** 列表数据 */ | ||
private List<T> content; | ||
|
||
public List<T> getContent() { | ||
return content; | ||
} | ||
|
||
public void setContent(List<T> content) { | ||
this.content = content; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters