feat 废弃jwt 、 学识分

This commit is contained in:
2026-02-06 22:31:29 +08:00
parent b1dfb88f71
commit 456f1970eb
17 changed files with 236 additions and 156 deletions

View File

@@ -40,6 +40,5 @@ serve:
port: 18503
auth:
secret: "bMa3mU4oCsX2KBex5o7GzwSnACpumFq3SdlDXYZgVTU="
shortExpire: 60
longExpire: 10080
shortExpire: 3600
longExpire: 604800

View File

@@ -14,9 +14,8 @@ type Config struct {
}
type AuthConfig struct {
Secret string `yaml:"secret"`
ShortExpire int64 `yaml:"shortExpire"`
LongExpire int64 `yaml:"longExpire"`
ShortExpire int64 `yaml:"shortExpire"`
LongExpire int64 `yaml:"longExpire"`
}
var cfg *Config

View File

@@ -40,6 +40,5 @@ serve:
port: 18503
auth:
secret: "bMa3mU4oCsX2KBex5o7GzwSnACpumFq3SdlDXYZgVTU="
shortExpire: 15
longExpire: 10080
shortExpire: 3600
longExpire: 604800