From f367ca7772c3cad36a6f2aed5c4b278451fb4e7b Mon Sep 17 00:00:00 2001 From: cheng <1821349743@qq.com> Date: 星期六, 13 五月 2023 17:03:04 +0800 Subject: [PATCH] 表单建模列表左侧树接口、删除接口 --- src/main/java/com/product/face/config/ErrorCode.java | 44 +++++++++++++++++++++++--------------------- 1 files changed, 23 insertions(+), 21 deletions(-) diff --git a/src/main/java/com/product/face/config/ErrorCode.java b/src/main/java/com/product/face/config/ErrorCode.java index b145308..f8c5676 100644 --- a/src/main/java/com/product/face/config/ErrorCode.java +++ b/src/main/java/com/product/face/config/ErrorCode.java @@ -14,32 +14,34 @@ */ public enum ErrorCode implements IEnum { - SAVE_FACE_FAIL("淇濆瓨琛ㄥ崟鍐呭澶辫触", 1), - SAVE_EMPTY_FACE_FAIL("淇濆瓨琛ㄥ崟鍐呭澶辫触,琛ㄥ崟鍐呭涓嶈兘涓虹┖", 2), + SAVE_FACE_FAIL("淇濆瓨琛ㄥ崟鍐呭澶辫触", 1), + SAVE_EMPTY_FACE_FAIL("淇濆瓨琛ㄥ崟鍐呭澶辫触,琛ㄥ崟鍐呭涓嶈兘涓虹┖", 2), - ; + DELETE_FACE_FAIL("鍒犻櫎琛ㄥ崟澶辫触", 3), + + ; - private String text; - private int value; + private String text; + private int value; - ErrorCode(String text, int value) { - this.value = value; - this.text = text; - } + ErrorCode(String text, int value) { + this.value = value; + this.text = text; + } - @Override - public String getText() { - return this.text; - } + @Override + public String getText() { + return this.text; + } - @Override - public String getValue() { - Format f1 = new DecimalFormat("000"); - return ModuleEnum.PRINT.getValue() + f1.format(this.value); - } + @Override + public String getValue() { + Format f1 = new DecimalFormat("000"); + return ModuleEnum.PRINT.getValue() + f1.format(this.value); + } - public void throwException() { - throw new BaseException(this); - } + public void throwException() { + throw new BaseException(this); + } } -- Gitblit v1.9.2