package org.xyzh.common.annotation;

import java.lang.annotation.*;

/**
 * @description    HttpLogin.java文件描述 HTTP登录注解
 * @filename    HttpLogin.java
 * @author    yslg
 * @copyright xyzh
 * @since 2025-10-06
 */
@Target(ElementType.PARAMETER)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface HttpLogin {
    
    /**
     * @description    是否必需，默认为true
     * @return    boolean
     * @author    yslg
     * @since 2025-10-06
     */
    boolean required() default true;
    
    /**
     * @description    当token无效时的错误消息
     * @return    String
     * @author    yslg
     * @since 2025-10-06
     */
    String message() default "用户未登录或登录已过期";
}
