Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sample-form-platform
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
赵啸非
sample-form-platform
Commits
c7ce5f0d
Commit
c7ce5f0d
authored
Apr 03, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加样表皮肤管理
parent
034ed77a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
66 deletions
+0
-66
sample-form-manager/src/main/java/com/mortals/xhx/common/code/ImageResolutionEnum.java
...java/com/mortals/xhx/common/code/ImageResolutionEnum.java
+0
-66
No files found.
sample-form-manager/src/main/java/com/mortals/xhx/common/code/ImageResolutionEnum.java
deleted
100644 → 0
View file @
034ed77a
package
com.mortals.xhx.common.code
;
import
java.util.LinkedHashMap
;
import
java.util.Map
;
/**
* 分辨率 (1.1920*1080,2.1080*1920,3.1280*1280)枚举类
*
* @author zxfei
*/
public
enum
ImageResolutionEnum
{
1.1920
*
1080
(
"1.1920*1080"
,
"1.1920*1080"
),
2.1080
*
1920
(
"2.1080*1920"
,
"2.1080*1920"
),
3.1280
*
1280
(
"3.1280*1280"
,
"3.1280*1280"
);
private
String
value
;
private
String
desc
;
ImageResolutionEnum
(
String
value
,
String
desc
)
{
this
.
value
=
value
;
this
.
desc
=
desc
;
}
public
String
getValue
()
{
return
this
.
value
;
}
public
String
getDesc
()
{
return
this
.
desc
;
}
public
static
ImageResolutionEnum
getByValue
(
String
value
)
{
for
(
ImageResolutionEnum
imageResolutionEnum
:
ImageResolutionEnum
.
values
())
{
if
(
imageResolutionEnum
.
getValue
()
==
value
)
{
return
imageResolutionEnum
;
}
}
return
null
;
}
/**
* 获取Map集合
*
* @param eItem 不包含项
* @return
*/
public
static
Map
<
String
,
String
>
getEnumMap
(
String
...
eItem
)
{
Map
<
String
,
String
>
resultMap
=
new
LinkedHashMap
<>();
for
(
ImageResolutionEnum
item
:
ImageResolutionEnum
.
values
())
{
try
{
boolean
hasE
=
false
;
for
(
String
e
:
eItem
)
{
if
(
item
.
getValue
()
==
e
)
{
hasE
=
true
;
break
;
}
}
if
(!
hasE
)
{
resultMap
.
put
(
item
.
getValue
()
+
""
,
item
.
getDesc
());
}
}
catch
(
Exception
ex
)
{
}
}
return
resultMap
;
}
}
\ No newline at end of file
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