Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
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
platform
hp-smart
Commits
4b1119bc
Commit
4b1119bc
authored
Jan 09, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
启停用状态枚举;
parent
bc2ce2f8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
57 additions
and
0 deletions
+57
-0
InitiateModeEnum.java
...in/java/com/baosight/iplat4j/common/InitiateModeEnum.java
+57
-0
No files found.
src/main/java/com/baosight/iplat4j/common/InitiateModeEnum.java
0 → 100644
View file @
4b1119bc
package
com
.
baosight
.
iplat4j
.
common
;
import
com.baosight.iplat4j.core.ei.EiBlock
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
/**
* @Author wwl
* @Date 2024/1/9 19:16
*/
public
enum
InitiateModeEnum
{
STOP
(
0
,
"停用"
),
USING
(
1
,
"启用"
);
private
Integer
code
;
private
String
value
;
InitiateModeEnum
(
Integer
code
,
String
value
)
{
this
.
code
=
code
;
this
.
value
=
value
;
}
public
Integer
getCode
()
{
return
code
;
}
public
void
setCode
(
Integer
code
)
{
this
.
code
=
code
;
}
public
String
getValue
()
{
return
value
;
}
public
void
setValue
(
String
value
)
{
this
.
value
=
value
;
}
public
static
EiBlock
generatorEiBlock
(){
EiBlock
block
=
new
EiBlock
(
"initiate_mode_block_id"
);
List
<
Map
<
String
,
Object
>>
rows
=
new
ArrayList
<
Map
<
String
,
Object
>>(){{
add
(
new
HashMap
<
String
,
Object
>(){{
put
(
HPConstants
.
TEXT_FIELD
,
STOP
.
code
);
put
(
HPConstants
.
VALUE_FIELD
,
STOP
.
value
);
}});
add
(
new
HashMap
<
String
,
Object
>(){{
put
(
HPConstants
.
TEXT_FIELD
,
USING
.
code
);
put
(
HPConstants
.
VALUE_FIELD
,
USING
.
value
);
}});
}};
block
.
setRows
(
rows
);
return
block
;
}
}
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