From 64dde0215ada28e4277172537f5daa0932fbdcbc Mon Sep 17 00:00:00 2001 From: UUBulb <35923940+uubulb@users.noreply.github.com> Date: Fri, 6 Dec 2024 23:38:20 +0800 Subject: [PATCH] UserTemplate GitHub -> Repository (#564) --- model/setting_api.go | 10 +++++----- service/singleton/singleton.go | 18 +++++++++--------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/model/setting_api.go b/model/setting_api.go index fb8b51c..cc78fb3 100644 --- a/model/setting_api.go +++ b/model/setting_api.go @@ -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 { diff --git a/service/singleton/singleton.go b/service/singleton/singleton.go index f671c5a..f67fef2 100644 --- a/service/singleton/singleton.go +++ b/service/singleton/singleton.go @@ -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, }, } )