feat(auth): 添加JWT与Casbin权限认证功能

This commit is contained in:
unclesam committed 2026-07-07 20:24:30 +08:00
1 parent fe86c081f4
commit 16a9f64109
9 files changed
+236 -27

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
package conf
type JwtConfig struct {
AccessExpire int `mapstructure:"access_expire" yaml:"access_expire"`
RefreshExpire int `mapstructure:"refresh_expire" yaml:"refresh_expire"`
AccessSecret string `mapstructure:"access_secret" yaml:"access_secret"`
RefreshSecret string `mapstructure:"refresh_secret" yaml:"refresh_secret"`
Issuer string `mapstructure:"issuer" yaml:"issuer"`
}