package cn.novalon.gym.manage.common.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

/**
 * JWT配置属性类
 * 
 * @author 张翔
 * @date 2026-03-13
 */
@Component
@ConfigurationProperties(prefix = "jwt")
@Validated
public class JwtProperties {

    private String secret = "default-secret-key-change-in-production";
    private long expiration = 86400000;

    public String getSecret() {
        return secret;
    }

    public void setSecret(String secret) {
        this.secret = secret;
    }

    public long getExpiration() {
        return expiration;
    }

    public void setExpiration(long expiration) {
        this.expiration = expiration;
    }
}
