| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- package jnpf.visualdata.enums;
- /**
- * @author JNPF开发平台组
- * @version V3.1.0
- * @copyright 引迈信息技术有限公司
- * @date 2021年6月15日
- */
- public enum VisualImgEnum {
- /**
- * 背景图片
- */
- BG("0", "bg"),
- /**
- * 图片框
- */
- BORDER("1", "border"),
- /**
- * 图片
- */
- SOURCE("2", "source"),
- /**
- * banner
- */
- BANNER("3", "banner"),
- /**
- * banner
- */
- BACKGROUND("5", "background"),
- /**
- * 大屏截图
- */
- SCREENSHOT("4", "screenShot");
- /**
- * 状态码
- */
- private String code;
- /**
- * 消息
- */
- private String message;
- VisualImgEnum(String code, String message) {
- this.code = code;
- this.message = message;
- }
- public String getCode() {
- return code;
- }
- public String getMessage() {
- return message;
- }
- /**
- * 判断名称是否存在
- *
- * @return boolean
- */
- public static VisualImgEnum getByMessage(String type) {
- for (VisualImgEnum value : VisualImgEnum.values()) {
- if(value.code.contains(type) || value.getMessage().contains(type)){
- return value;
- }
- }
- return null;
- }
- }
|