Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Q
qk_backend
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
quanku
qk_backend
Commits
a35dfbc3
Commit
a35dfbc3
authored
Aug 21, 2023
by
shiyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
EsSearchRequestDto定义所需字段
parent
be7597bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/EsSearchRequestDto.java
...n/java/com/wwdz/ch/db/dto/request/EsSearchRequestDto.java
+11
-0
No files found.
ch-dao/src/main/java/com/wwdz/ch/db/dto/request/EsSearchRequestDto.java
View file @
a35dfbc3
...
...
@@ -3,6 +3,8 @@ package com.wwdz.ch.db.dto.request;
import
com.xxdxxs.entity.Entity
;
import
lombok.Data
;
import
java.util.Arrays
;
import
java.util.List
;
import
java.util.Map
;
@Data
...
...
@@ -10,6 +12,7 @@ public class EsSearchRequestDto implements Entity {
private
Map
<
String
,
String
>
paramMap
;
private
String
content
;
private
List
<
String
>
includes
;
private
String
sortField
;
private
Boolean
isDesc
=
true
;
private
int
page
=
1
;
...
...
@@ -39,6 +42,10 @@ public class EsSearchRequestDto implements Entity {
this
.
content
=
content
;
}
public
EsSearchRequestDto
(
String
...
includes
)
{
this
.
includes
=
Arrays
.
asList
(
includes
);
}
public
EsSearchRequestDto
(
String
content
,
int
page
,
int
size
)
{
this
.
content
=
content
;
this
.
page
=
page
;
...
...
@@ -52,4 +59,8 @@ public class EsSearchRequestDto implements Entity {
public
static
EsSearchRequestDto
of
(
String
content
)
{
return
new
EsSearchRequestDto
(
content
);
}
public
static
EsSearchRequestDto
includes
(
String
...
includes
)
{
return
new
EsSearchRequestDto
(
includes
);
}
}
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