mirror of
https://github.com/yv1ing/MollyBlog.git
synced 2025-09-16 14:53:45 +08:00
new: Added music collection page
This commit is contained in:
14
config/mMusic.go
Normal file
14
config/mMusic.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package config
|
||||
|
||||
type mMusic struct {
|
||||
Title string `yaml:"title"`
|
||||
List []mMusicItem `yaml:"list"`
|
||||
}
|
||||
|
||||
type mMusicItem struct {
|
||||
Name string `yaml:"name"`
|
||||
Singer string `yaml:"singer"`
|
||||
Cover string `yaml:"cover"`
|
||||
MusicUrl string `yaml:"music_url"`
|
||||
LyricUrl string `yaml:"lyric_url"`
|
||||
}
|
||||
@@ -5,6 +5,7 @@ type mSite struct {
|
||||
Menu mMenu `yaml:"menu"`
|
||||
Post mPost `yaml:"post"`
|
||||
About mAbout `yaml:"about"`
|
||||
Music mMusic `yaml:"music"`
|
||||
Friend mFriend `yaml:"friend"`
|
||||
Statistics mStatistics `yaml:"statistics"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user