UserTemplate GitHub -> Repository (#564)

This commit is contained in:
UUBulb 2024-12-06 23:38:20 +08:00 committed by GitHub
parent 9b0697491d
commit 64dde0215a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 14 additions and 14 deletions

View File

@ -19,11 +19,11 @@ type SettingForm struct {
}
type UserTemplate struct {
Path string `json:"path,omitempty"`
Name string `json:"name,omitempty"`
GitHub string `json:"github,omitempty"`
Author string `json:"author,omitempty"`
Community bool `json:"community,omitempty"`
Path string `json:"path,omitempty"`
Name string `json:"name,omitempty"`
Repository string `json:"repository,omitempty"`
Author string `json:"author,omitempty"`
Community bool `json:"community,omitempty"`
}
type SettingResponse struct {

View File

@ -21,16 +21,16 @@ var (
Loc *time.Location
UserTemplates = []model.UserTemplate{
{
Path: "user-dist",
Name: "Official",
GitHub: "https://github.com/hamster1963/nezha-dash",
Author: "hamster1963",
Path: "user-dist",
Name: "Official",
Repository: "https://github.com/hamster1963/nezha-dash",
Author: "hamster1963",
}, {
Path: "nazhua-dist",
Name: "Nazhua",
GitHub: "https://github.com/hi2shark/nazhua",
Author: "hi2hi",
Community: true,
Path: "nazhua-dist",
Name: "Nazhua",
Repository: "https://github.com/hi2shark/nazhua",
Author: "hi2hi",
Community: true,
},
}
)