Skip to content
  • Projects
  • Groups
  • Snippets
  • Help

dj / YouJia

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Switch branch/tag
  • YouJia
  • ..
  • enums
  • EnableStatusEnum.java
  • 叶立庆's avatar
    初始化项目 · 6a0e3330
    叶立庆 committed Sep 29, 2026
    6a0e3330
EnableStatusEnum.java 365 Bytes
RawBlameHistoryPermalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package com.youjia.common.enums;

import lombok.Getter;

/**
 * 启用 / 停用状态。
 */
@Getter
public enum EnableStatusEnum {

    ENABLED(1, "启用"),
    DISABLED(0, "停用");

    private final Integer code;
    private final String label;

    EnableStatusEnum(Integer code, String label) {
        this.code = code;
        this.label = label;
    }
}