BlackForest/Config.go
rick.chan 798f3319d4 创建配置系统框架。
Signed-off-by: rick.chan <cy@haoan119.com>
2024-07-24 10:28:45 +08:00

26 lines
451 B
Go

package main
type Config struct{}
type ConfigJ struct {
Album ConfigAlbum `json:"album,omitempty"`
}
type ConfigAlbum struct {
Folder []AlbumFolder `json:"folder,omitempty"`
Virtual map[string]interface{} `json:"virtual,omitempty"`
}
type AlbumFolder struct {
Name string `json:"name,omitempty"`
Path string `json:"path"`
}
func (my *Config) Init() *Config {
return my
}
func (my *Config) Read() {}
func (my *Config) Write() {}