cheng
2023-05-13 f367ca7772c3cad36a6f2aed5c4b278451fb4e7b
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);
    }
}