Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
B
BasicAPI
Project
Project
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
杜科
BasicAPI
Commits
5c6bc643
Commit
5c6bc643
authored
Feb 06, 2023
by
shyWang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PDM前端改造
前端参数类
parent
027bc448
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
186 additions
and
0 deletions
+186
-0
SpecSearch.java
src/com/yonde/basedata/search/SpecSearch.java
+186
-0
No files found.
src/com/yonde/basedata/search/SpecSearch.java
0 → 100644
View file @
5c6bc643
package
com
.
yonde
.
basedata
.
search
;
import
com.fasterxml.jackson.annotation.JsonUnwrapped
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
SpecSearch
{
private
List
<
String
>
searchTypes
=
new
ArrayList
();
@JsonUnwrapped
private
SearchQueryCondition
searchQueryCondition
;
Long
dxViewId
;
Boolean
needPreView
;
private
List
<
String
>
state
;
private
Long
sandboxId
;
private
SpecSearch
.
SpecRouteType
specRouteType
;
private
static
Boolean
$default$needPreView
()
{
return
false
;
}
private
static
SpecSearch
.
SpecRouteType
$default$specRouteType
()
{
return
SpecSearch
.
SpecRouteType
.
DB
;
}
public
static
SpecSearch
.
SpecSearchBuilder
builder
()
{
return
new
SpecSearch
.
SpecSearchBuilder
();
}
public
List
<
String
>
getSearchTypes
()
{
return
this
.
searchTypes
;
}
public
SearchQueryCondition
getSearchQueryCondition
()
{
return
this
.
searchQueryCondition
;
}
public
Long
getDxViewId
()
{
return
this
.
dxViewId
;
}
public
Boolean
getNeedPreView
()
{
return
this
.
needPreView
;
}
public
List
<
String
>
getState
()
{
return
this
.
state
;
}
public
Long
getSandboxId
()
{
return
this
.
sandboxId
;
}
public
SpecSearch
.
SpecRouteType
getSpecRouteType
()
{
return
this
.
specRouteType
;
}
public
void
setSearchTypes
(
List
<
String
>
searchTypes
)
{
this
.
searchTypes
=
searchTypes
;
}
public
void
setSearchQueryCondition
(
SearchQueryCondition
searchQueryCondition
)
{
this
.
searchQueryCondition
=
searchQueryCondition
;
}
public
void
setDxViewId
(
Long
dxViewId
)
{
this
.
dxViewId
=
dxViewId
;
}
public
void
setNeedPreView
(
Boolean
needPreView
)
{
this
.
needPreView
=
needPreView
;
}
public
void
setState
(
List
<
String
>
state
)
{
this
.
state
=
state
;
}
public
void
setSandboxId
(
Long
sandboxId
)
{
this
.
sandboxId
=
sandboxId
;
}
public
void
setSpecRouteType
(
SpecSearch
.
SpecRouteType
specRouteType
)
{
this
.
specRouteType
=
specRouteType
;
}
protected
boolean
canEqual
(
Object
other
)
{
return
other
instanceof
SpecSearch
;
}
public
SpecSearch
()
{
this
.
needPreView
=
$default$needPreView
();
this
.
specRouteType
=
$default$specRouteType
();
}
public
SpecSearch
(
List
<
String
>
searchTypes
,
SearchQueryCondition
searchQueryCondition
,
Long
dxViewId
,
Boolean
needPreView
,
List
<
String
>
state
,
Long
sandboxId
,
SpecSearch
.
SpecRouteType
specRouteType
)
{
this
.
searchTypes
=
searchTypes
;
this
.
searchQueryCondition
=
searchQueryCondition
;
this
.
dxViewId
=
dxViewId
;
this
.
needPreView
=
needPreView
;
this
.
state
=
state
;
this
.
sandboxId
=
sandboxId
;
this
.
specRouteType
=
specRouteType
;
}
public
static
class
SpecSearchBuilder
{
private
List
<
String
>
searchTypes
;
private
SearchQueryCondition
searchQueryCondition
;
private
Long
dxViewId
;
private
boolean
needPreView$set
;
private
Boolean
needPreView$value
;
private
List
<
String
>
state
;
private
Long
sandboxId
;
private
boolean
specRouteType$set
;
private
SpecSearch
.
SpecRouteType
specRouteType$value
;
SpecSearchBuilder
()
{
}
public
SpecSearch
.
SpecSearchBuilder
searchTypes
(
List
<
String
>
searchTypes
)
{
this
.
searchTypes
=
searchTypes
;
return
this
;
}
public
SpecSearch
.
SpecSearchBuilder
searchQueryCondition
(
SearchQueryCondition
searchQueryCondition
)
{
this
.
searchQueryCondition
=
searchQueryCondition
;
return
this
;
}
public
SpecSearch
.
SpecSearchBuilder
dxViewId
(
Long
dxViewId
)
{
this
.
dxViewId
=
dxViewId
;
return
this
;
}
public
SpecSearch
.
SpecSearchBuilder
needPreView
(
Boolean
needPreView
)
{
this
.
needPreView
$value
=
needPreView
;
this
.
needPreView
$set
=
true
;
return
this
;
}
public
SpecSearch
.
SpecSearchBuilder
state
(
List
<
String
>
state
)
{
this
.
state
=
state
;
return
this
;
}
public
SpecSearch
.
SpecSearchBuilder
sandboxId
(
Long
sandboxId
)
{
this
.
sandboxId
=
sandboxId
;
return
this
;
}
public
SpecSearch
.
SpecSearchBuilder
specRouteType
(
SpecSearch
.
SpecRouteType
specRouteType
)
{
this
.
specRouteType
$value
=
specRouteType
;
this
.
specRouteType
$set
=
true
;
return
this
;
}
public
SpecSearch
build
()
{
Boolean
needPreView$value
=
this
.
needPreView
$value
;
if
(!
this
.
needPreView
$set
)
{
needPreView$value
=
SpecSearch
.
$default$needPreView
();
}
SpecSearch
.
SpecRouteType
specRouteType$value
=
this
.
specRouteType
$value
;
if
(!
this
.
specRouteType
$set
)
{
specRouteType$value
=
SpecSearch
.
$default$specRouteType
();
}
return
new
SpecSearch
(
this
.
searchTypes
,
this
.
searchQueryCondition
,
this
.
dxViewId
,
needPreView$value
,
this
.
state
,
this
.
sandboxId
,
specRouteType$value
);
}
public
String
toString
()
{
return
"SpecSearch.SpecSearchBuilder(searchTypes="
+
this
.
searchTypes
+
", searchQueryCondition="
+
this
.
searchQueryCondition
+
", dxViewId="
+
this
.
dxViewId
+
", needPreView$value="
+
this
.
needPreView
$value
+
", state="
+
this
.
state
+
", sandboxId="
+
this
.
sandboxId
+
", specRouteType$value="
+
this
.
specRouteType
$value
+
")"
;
}
}
public
static
enum
SpecRouteType
{
DB
(
"数据库"
),
ES
(
"elasticsearch"
);
private
String
route
;
private
SpecRouteType
(
String
route
)
{
this
.
route
=
route
;
}
}
}
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