对接统一登录认证

This commit is contained in:
wangjianhong
2025-07-23 22:17:47 +08:00
parent 5e4e272b3a
commit e7442ae419
48 changed files with 2940 additions and 3067 deletions

View File

@@ -29,11 +29,21 @@ type DatasourceConfig struct {
Password string `mapstructure:"password"`
}
// 定义 OAuth 配置结构体
type OAuthConfig struct {
AUTHORIZATION_SERVER_HOST string `yaml:"authorization_server_host"`
CLIENT_ID string `yaml:"client_id"`
CLIENT_SECRET string `yaml:"client_secret"`
REDIRECT_URI string `yaml:"redirect_uri"`
TOKEN_URL string `yaml:"token_url"`
}
type Config struct {
App AppConfig `mapstructure:"app"`
Server ServerConfig `mapstructure:"server"`
Datasource DatasourceConfig `mapstructure:"datasource"`
Logging LoggingConfig `mapstructure:"logging"`
OAuth OAuthConfig `mapstructure:"oauth"`
ServerAddress string
}