Home - mash-up-kr/mahsup-manage-backend GitHub Wiki

ENUM TYPE

ROLE

public enum Role {

    MEMBER(1, "동아리원"),
    TEAM_LEADER(2, "νŒ€μž₯"),
    VICE_TEAM_LEADER(3, "λΆ€νŒ€μž₯"),
    GENERAL_AFFAIRS(4, "총무"),
    CHIEF(6, "단μž₯"),
    VICE_CHIEF(5, "뢀단μž₯");

    private int code;
    private String description;

    Role(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return this.code;
    }

    public String getDescription() {
        return this.description;
    }
}

STATUS


public enum Status {

    ACTIVATED(1, "ν™œλ™"),
    DEACTIVATED(2, "νœ΄μ‹"),
    EXITED(3, "νƒˆν‡΄");

    private int code;
    private String description;

    Status(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return this.code;
    }

    public String getDescription() {
        return this.description;
    }
}

TEAM


public enum Team {

    BACKEND(1, "μ„œλ²„"),
    ANDROID(2, "μ•ˆλ“œλ‘œμ΄λ“œ"),
    IOS(3, "μ•„μ΄μ˜€μ—μŠ€"),
    DESGIGN(4, "λ””μžμΈ");

    private int code;
    private String description;

    Team(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return this.code;
    }

    public String getDescription() {
        return this.description;
    }
}

NOTICE TYPE

public enum NoticeType {
    
    PUBLIC(1, "전체"),
    TEAM_STUDY(2, "νŒ€ μŠ€ν„°λ””"),
    PROJECT(3, "ν”„λ‘œμ νŠΈ");

    private int code;
    private String description;
    
    NoticeType(int code, String description) {
        this.code = code;
        this.description = description;
    }
    
    private int getCode() {
        return this.code;
    }

    public String getDescription() {
        return description;
    }
}