Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
platform
/
platform-shopmall-parent
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e4097856
authored
Apr 24, 2023
by
黄超华
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
获取枚举类
1 parent
f59604b6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
0 deletions
platform-shopmall-api/src/main/java/cn/com/glsx/admin/modules/enums/BizMessageTypeEnum.java
platform-shopmall-api/src/main/java/cn/com/glsx/admin/modules/enums/BizMessageTypeEnum.java
View file @
e409785
...
@@ -21,6 +21,18 @@ public interface BizMessageTypeEnum {
...
@@ -21,6 +21,18 @@ public interface BizMessageTypeEnum {
public
String
getDisplayName
()
{
public
String
getDisplayName
()
{
return
text
;
return
text
;
}
}
public
static
MessageTypeEnum
getByValue
(
Integer
value
){
if
(
value
==
null
){
return
null
;
}
for
(
MessageTypeEnum
enums
:
MessageTypeEnum
.
values
())
{
if
(
enums
.
getValue
().
equals
(
value
))
{
return
enums
;
}
}
return
null
;
}
}
}
@Getter
@Getter
...
@@ -56,6 +68,18 @@ public interface BizMessageTypeEnum {
...
@@ -56,6 +68,18 @@ public interface BizMessageTypeEnum {
public
String
getDisplayName
()
{
public
String
getDisplayName
()
{
return
text
;
return
text
;
}
}
public
static
MessageSmallTypeEnum
getByValue
(
Integer
value
){
if
(
value
==
null
){
return
null
;
}
for
(
MessageSmallTypeEnum
enums
:
MessageSmallTypeEnum
.
values
())
{
if
(
enums
.
getValue
().
equals
(
value
))
{
return
enums
;
}
}
return
null
;
}
}
}
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment