添加展示多硬盘用量信息的功能 (#1747)

* featurel: 添加多磁盘用量信息展示
This commit is contained in:
Juneyx
2024-05-18 11:52:44 +08:00
committed by GitHub
parent 42de9257c3
commit fb53d639be
5 changed files with 58 additions and 22 deletions

View File

@@ -27,6 +27,8 @@ type Server struct {
Excel Excel `mapstructure:"excel" json:"excel" yaml:"excel"`
DiskList []DiskList `mapstructure:"disk-list" json:"disk-list" yaml:"disk-list"`
// 跨域配置
Cors CORS `mapstructure:"cors" json:"cors" yaml:"cors"`
}

9
server/config/disk.go Normal file
View File

@@ -0,0 +1,9 @@
package config
type Disk struct {
MountPoint string `mapstructure:"mount-point" json:"mount-point" yaml:"mount-point"`
}
type DiskList struct {
Disk `yaml:",inline" mapstructure:",squash"`
}