zhangqian
2023-08-29 d3a78e4c791821b298075b700e9fc14030d12ec2
1
2
3
4
5
6
7
8
package config
 
type JWT struct {
    SigningKey  string `mapstructure:"signing-key" json:"signing-key" yaml:"signing-key"`    // jwt签名
    ExpiresTime string `mapstructure:"expires-time" json:"expires-time" yaml:"expires-time"` // 过期时间
    BufferTime  string `mapstructure:"buffer-time" json:"buffer-time" yaml:"buffer-time"`    // 缓冲时间
    Issuer      string `mapstructure:"issuer" json:"issuer" yaml:"issuer"`                   // 签发者
}