功能开发完成

This commit is contained in:
2025-12-31 16:23:40 +08:00
parent 2b51050ca8
commit 6f0598a859
28 changed files with 5463 additions and 118 deletions

View File

@@ -11,6 +11,7 @@ import (
// Config 应用配置
type Config struct {
Server ServerConfig `yaml:"server"`
Web WebConfig `yaml:"web"`
Workspace WorkspaceConfig `yaml:"workspace"`
Storage StorageConfig `yaml:"storage"`
Worker WorkerConfig `yaml:"worker"`
@@ -29,6 +30,12 @@ type ServerConfig struct {
WriteTimeout time.Duration `yaml:"write_timeout"`
}
// WebConfig 前端配置
type WebConfig struct {
Dir string `yaml:"dir"`
Enabled bool `yaml:"enabled"`
}
// WorkspaceConfig 工作空间配置
type WorkspaceConfig struct {
BaseDir string `yaml:"base_dir"`
@@ -82,7 +89,7 @@ type SecurityConfig struct {
// GitConfig Git配置
type GitConfig struct {
CommandPath string `yaml:"command_path"`
CommandPath string `yaml:"command_path"`
FallbackToGoGit bool `yaml:"fallback_to_gogit"`
}