package com.datamate.common.auth.infrastructure.exception;

import com.datamate.common.infrastructure.exception.ErrorCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 认证授权错误码
 */
@Getter
@AllArgsConstructor
public enum AuthErrorCode implements ErrorCode {
    INVALID_CREDENTIALS("auth.0001", "用户名或密码错误"),
    ACCOUNT_DISABLED("auth.0002", "账号已被禁用"),
    TOKEN_INVALID("auth.0003", "登录状态已失效"),
    USER_NOT_FOUND("auth.0004", "用户不存在"),
    ROLE_NOT_FOUND("auth.0005", "角色不存在"),
    AUTHORIZATION_DENIED("auth.0006", "无权限执行该操作");

    private final String code;
    private final String message;
}

