🎇 多盘支持
This commit is contained in:
@ -1,16 +1,27 @@
|
||||
package conf
|
||||
|
||||
type Drive struct {
|
||||
AccessToken string `yaml:"-"`
|
||||
RefreshToken string `yaml:"refresh_token"`
|
||||
RootFolder string `yaml:"root_folder"` //根目录id
|
||||
Name string `yaml:"name"`
|
||||
Password string `yaml:"password"`
|
||||
Hide bool `yaml:"hide"`
|
||||
DefaultDriveId string `yaml:"-"`
|
||||
}
|
||||
|
||||
// config struct
|
||||
type Config struct {
|
||||
Info struct {
|
||||
Title string `yaml:"title" json:"title"`
|
||||
Logo string `yaml:"logo" json:"logo"`
|
||||
FooterText string `yaml:"footer_text" json:"footer_text"`
|
||||
FooterUrl string `yaml:"footer_url" json:"footer_url"`
|
||||
MusicImg string `yaml:"music_img" json:"music_img"`
|
||||
CheckUpdate bool `yaml:"check_update" json:"check_update"`
|
||||
Script string `yaml:"script" json:"script"`
|
||||
Autoplay bool `yaml:"autoplay" json:"autoplay"`
|
||||
Title string `yaml:"title" json:"title"`
|
||||
Roots []string `yaml:"-" json:"roots"`
|
||||
Logo string `yaml:"logo" json:"logo"`
|
||||
FooterText string `yaml:"footer_text" json:"footer_text"`
|
||||
FooterUrl string `yaml:"footer_url" json:"footer_url"`
|
||||
MusicImg string `yaml:"music_img" json:"music_img"`
|
||||
CheckUpdate bool `yaml:"check_update" json:"check_update"`
|
||||
Script string `yaml:"script" json:"script"`
|
||||
Autoplay bool `yaml:"autoplay" json:"autoplay"`
|
||||
Preview struct {
|
||||
Url string `yaml:"url" json:"url"`
|
||||
PreProcess []string `yaml:"pre_process" json:"pre_process"`
|
||||
@ -27,13 +38,9 @@ type Config struct {
|
||||
Password string `yaml:"password"`
|
||||
} `yaml:"server"`
|
||||
AliDrive struct {
|
||||
ApiUrl string `yaml:"api_url"` //阿里云盘api
|
||||
RootFolder string `yaml:"root_folder"` //根目录id
|
||||
//Authorization string `yaml:"authorization"`//授权token
|
||||
LoginToken string `yaml:"login_token"`
|
||||
AccessToken string `yaml:"access_token"`
|
||||
RefreshToken string `yaml:"refresh_token"`
|
||||
MaxFilesCount int `yaml:"max_files_count"`
|
||||
ApiUrl string `yaml:"api_url"` //阿里云盘api
|
||||
MaxFilesCount int `yaml:"max_files_count"`
|
||||
Drives []Drive `yaml:"drives"`
|
||||
} `yaml:"ali_drive"`
|
||||
Database struct {
|
||||
Type string `yaml:"type"`
|
||||
|
Reference in New Issue
Block a user