fix: token 改为配置文件读取,不再自动生成;UI 全部汉化
This commit is contained in:
@@ -11,6 +11,11 @@ type DoubaoConfig struct {
|
||||
ResourceID string `yaml:"resource_id"`
|
||||
}
|
||||
|
||||
// SecurityConfig holds authentication settings.
|
||||
type SecurityConfig struct {
|
||||
Token string `yaml:"token"`
|
||||
}
|
||||
|
||||
// ServerConfig holds server settings.
|
||||
type ServerConfig struct {
|
||||
Port int `yaml:"port"`
|
||||
@@ -19,8 +24,9 @@ type ServerConfig struct {
|
||||
|
||||
// Config is the top-level configuration.
|
||||
type Config struct {
|
||||
Doubao DoubaoConfig `yaml:"doubao"`
|
||||
Server ServerConfig `yaml:"server"`
|
||||
Doubao DoubaoConfig `yaml:"doubao"`
|
||||
Server ServerConfig `yaml:"server"`
|
||||
Security SecurityConfig `yaml:"security"`
|
||||
}
|
||||
|
||||
// defaults returns a Config with default values.
|
||||
|
||||
Reference in New Issue
Block a user