File tree Expand file tree Collapse file tree 5 files changed +17
-4
lines changed
springboot-starter-data-fast
springboot-starter-security
src/main/java/com/codingapi/springboot/framework/dto/request Expand file tree Collapse file tree 5 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 1212
1313 <groupId >com.codingapi.springboot</groupId >
1414 <artifactId >springboot-parent</artifactId >
15- <version >3.2.1 </version >
15+ <version >3.2.2 </version >
1616
1717 <url >https://github.com/codingapi/springboot-framewrok</url >
1818 <name >springboot-parent</name >
Original file line number Diff line number Diff line change 55 <parent >
66 <artifactId >springboot-parent</artifactId >
77 <groupId >com.codingapi.springboot</groupId >
8- <version >3.2.1 </version >
8+ <version >3.2.2 </version >
99 </parent >
1010 <modelVersion >4.0.0</modelVersion >
1111
Original file line number Diff line number Diff line change 66 <parent >
77 <artifactId >springboot-parent</artifactId >
88 <groupId >com.codingapi.springboot</groupId >
9- <version >3.2.1 </version >
9+ <version >3.2.2 </version >
1010 </parent >
1111
1212 <artifactId >springboot-starter-security</artifactId >
Original file line number Diff line number Diff line change 55 <parent >
66 <groupId >com.codingapi.springboot</groupId >
77 <artifactId >springboot-parent</artifactId >
8- <version >3.2.1 </version >
8+ <version >3.2.2 </version >
99 </parent >
1010 <artifactId >springboot-starter</artifactId >
1111
Original file line number Diff line number Diff line change 1414import java .lang .reflect .Field ;
1515import java .util .ArrayList ;
1616import java .util .Base64 ;
17+ import java .util .Enumeration ;
1718import java .util .List ;
1819
1920/**
2021 * HttpServletRequest 请求参数解析成 PageRequest对象
2122 */
2223public class SearchRequest {
2324
25+ @ Getter
2426 private int current ;
27+ @ Getter
2528 private int pageSize ;
2629
2730 private final HttpServletRequest request ;
@@ -63,6 +66,16 @@ public String[] getParameterValues(String key) {
6366 return request .getParameterValues (key );
6467 }
6568
69+
70+ public List <String > getParameterNames () {
71+ Enumeration <String > enumeration = request .getParameterNames ();
72+ List <String > list = new ArrayList <>();
73+ while (enumeration .hasMoreElements ()) {
74+ list .add (enumeration .nextElement ());
75+ }
76+ return list ;
77+ }
78+
6679 public PageRequest addFilter (String key , Relation relation , Object ... value ) {
6780 return pageRequest .addFilter (key , relation , value );
6881 }
You can’t perform that action at this time.
0 commit comments