diff --git a/internal/configs/api_config.go b/internal/configs/api_config.go index f7cec081..405ff8b4 100644 --- a/internal/configs/api_config.go +++ b/internal/configs/api_config.go @@ -9,7 +9,7 @@ import ( "path/filepath" ) -// API配置 +// APIConfig API配置 type APIConfig struct { RPC struct { Endpoints []string `yaml:"endpoints"` @@ -18,7 +18,7 @@ type APIConfig struct { Secret string `yaml:"secret"` } -// 加载API配置 +// LoadAPIConfig 加载API配置 func LoadAPIConfig() (*APIConfig, error) { // 候选文件 localFile := Tea.ConfigFile("api.yaml") @@ -59,7 +59,7 @@ func LoadAPIConfig() (*APIConfig, error) { return config, nil } -// 写入API配置 +// WriteFile 写入API配置 func (this *APIConfig) WriteFile(path string) error { data, err := yaml.Marshal(this) if err != nil { diff --git a/internal/setup/utils.go b/internal/setup/utils.go index ff16b014..b3bad525 100644 --- a/internal/setup/utils.go +++ b/internal/setup/utils.go @@ -6,7 +6,7 @@ import ( var isConfigured bool -// 判断系统是否已经配置过 +// IsConfigured 判断系统是否已经配置过 func IsConfigured() bool { if isConfigured { return true diff --git a/web/views/@default/setup/index.html b/web/views/@default/setup/index.html index f7e0154d..6354f35c 100644 --- a/web/views/@default/setup/index.html +++ b/web/views/@default/setup/index.html @@ -47,8 +47,9 @@