refactor: 代码优化重构

This commit is contained in:
ray
2024-11-09 00:30:42 +08:00
parent 58a3ff0e5f
commit 8aa6b2e208
13 changed files with 39 additions and 197 deletions

View File

@@ -0,0 +1,29 @@
package com.youlai.boot.system.enums;
import com.youlai.boot.common.base.IBaseEnum;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
/**
* 通知目标类型枚举
*
* @author haoxr
* @since 2022/10/14
*/
@Getter
@Schema(enumAsRef = true)
public enum NoticeTargetEnum implements IBaseEnum<Integer> {
ALL(1, "全体"),
SPECIFIED(2, "指定");
private final Integer value;
private final String label;
NoticeTargetEnum(Integer value, String label) {
this.value = value;
this.label = label;
}
}