From 528b1892d8e929b199dddc96f3a43f9b8039c8c8 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期四, 06 六月 2024 18:00:42 +0800 Subject: [PATCH] 模板接口打通 --- src/main/java/com/ycl/jxkg/domain/enums/UserStatusEnum.java | 15 ++++----------- 1 files changed, 4 insertions(+), 11 deletions(-) diff --git a/src/main/java/com/ycl/jxkg/domain/enums/UserStatusEnum.java b/src/main/java/com/ycl/jxkg/domain/enums/UserStatusEnum.java index cba2b24..0766723 100644 --- a/src/main/java/com/ycl/jxkg/domain/enums/UserStatusEnum.java +++ b/src/main/java/com/ycl/jxkg/domain/enums/UserStatusEnum.java @@ -9,10 +9,10 @@ Enable(1, "鍚敤"), Disable(2, "绂佺敤"); - int code; - String name; + private final Integer code; + private final String name; - UserStatusEnum(int code, String name) { + UserStatusEnum(Integer code, String name) { this.code = code; this.name = name; } @@ -29,20 +29,13 @@ return keyMap.get(code); } - public int getCode() { + public Integer getCode() { return code; - } - - public void setCode(int code) { - this.code = code; } public String getName() { return name; } - public void setName(String name) { - this.name = name; - } } -- Gitblit v1.8.0