From f65443d8abeaedc9d102324565e8368e7c9d90c8 Mon Sep 17 00:00:00 2001
From: 郑永安 <zyazyz250@sina.com>
Date: Mon, 19 Jun 2023 14:41:54 +0800
Subject: [PATCH] commit
---
src/main/java/com/gk/firework/Domain/Enum/DocumentType.java | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 46 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/gk/firework/Domain/Enum/DocumentType.java b/src/main/java/com/gk/firework/Domain/Enum/DocumentType.java
new file mode 100644
index 0000000..b52e215
--- /dev/null
+++ b/src/main/java/com/gk/firework/Domain/Enum/DocumentType.java
@@ -0,0 +1,46 @@
+package com.gk.firework.Domain.Enum;
+
+import com.baomidou.mybatisplus.core.enums.IEnum;
+import com.fasterxml.jackson.annotation.JsonValue;
+
+import java.io.Serializable;
+
+public enum DocumentType implements IEnum {
+
+
+ RESCUE("RESCUE", "应急救援预案"),
+ FLOW("FLOW", "流向信息管理承诺书"),
+ ;
+
+ private String code;
+ private String msg;
+
+ DocumentType(String code, String msg) {
+ this.code = code;
+ this.msg = msg;
+ }
+
+ public String getCode() {
+ return code;
+ }
+ @JsonValue
+ public String getMsg() {
+ return msg;
+ }
+
+
+
+ public static DocumentType parse(String code){
+ for(DocumentType dt:DocumentType.values()){
+ if(dt.getCode().equals(code)){
+ return dt;
+ }
+ }
+ return null;
+ }
+
+ @Override
+ public Serializable getValue() {
+ return this.code;
+ }
+}
--
Gitblit v1.9.2