mirror of
				https://gitee.com/dromara/mayfly-go
				synced 2025-11-04 08:20:25 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			13 lines
		
	
	
		
			285 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			285 B
		
	
	
	
		
			Go
		
	
	
	
	
	
package config
 | 
						|
 | 
						|
import "mayfly-go/pkg/utils/assert"
 | 
						|
 | 
						|
type Jwt struct {
 | 
						|
	Key        string `yaml:"key"`
 | 
						|
	ExpireTime uint64 `yaml:"expire-time"` // 过期时间,单位分钟
 | 
						|
}
 | 
						|
 | 
						|
func (j *Jwt) Valid() {
 | 
						|
	assert.IsTrue(j.ExpireTime != 0, "config.yml之 [jwt.expire-time] 不能为空")
 | 
						|
}
 |