feat: release v1.0.0

This commit is contained in:
2026-07-29 22:10:36 +08:00
parent ee9f50b859
commit c903b5a6b5
81 changed files with 2776 additions and 1044 deletions

View File

@@ -32,6 +32,13 @@ type Database struct {
SSLMode string `koanf:"sslMode"`
}
type Redis struct {
Addr string `koanf:"addr"`
Password string `koanf:"password"`
DB int `koanf:"db"`
KeyPrefix string `koanf:"key_prefix"`
}
type JWTConfig struct {
Secret string `koanf:"secret"`
SigningMethod string `koanf:"signing_method"`
@@ -41,6 +48,7 @@ type JWTConfig struct {
Audience string `koanf:"audience"`
TokenHeader string `koanf:"token_header"`
TokenPrefix string `koanf:"token_prefix"`
CookieName string `koanf:"cookie_name"`
}
type LogConfig struct {
@@ -56,6 +64,7 @@ type LogConfig struct {
type Config struct {
Server Server `koanf:"server"`
Database Database `koanf:"database"`
Redis Redis `koanf:"redis"`
JWTConfig JWTConfig `koanf:"jwt"`
Log LogConfig `koanf:"log"`
}