package com.mzh.library.entity;

public enum Permission {
    MANAGE_USERS("manage_users"),
    MANAGE_BOOKS("manage_books"),
    MANAGE_READERS("manage_readers"),
    MANAGE_BORROWING("manage_borrowing"),
    VIEW_REPORTS("view_reports"),
    VIEW_SYSTEM_LOGS("view_system_logs"),
    VIEW_CATALOG("view_catalog"),
    BORROW_BOOKS("borrow_books");

    private final String code;

    Permission(String code) {
        this.code = code;
    }

    public String getCode() {
        return code;
    }
}
