Initialize AutoLibrary website with Gitea deployment

This commit is contained in:
KenanZhu committed 2026-11-04 09:59:06 +08:00
commit 18216953e7
101 files changed
+12581

No files matched your search

+29
View File
@@ -0,0 +1,29 @@
package versions_model
import (
"time"
)
type VersionType string
type DownloadVersion struct {
ID uint `json:"id" gorm:"primaryKey"`
Version string `json:"version"`
Type VersionType `json:"type" gorm:"type:varchar(20);index"`
ReleaseDate time.Time `json:"releaseDate"` // Time zone: Asia/Shanghai
FileSize string `json:"fileSize"`
SupportOS string `json:"supportOS"`
Features string `json:"features"` // separated by ','
GitHubZipURL string `json:"githubZipUrl"`
GitHubInstallerURL string `json:"githubInstallerUrl"`
CloudZipURL string `json:"cloudZipUrl"`
CloudInstallerURL string `json:"cloudInstallerUrl"`
GitHubDmgURL string `json:"githubDmgUrl"`
GiteaZipURL string `json:"giteaZipUrl"`
GiteaInstallerURL string `json:"giteaInstallerUrl"`
GiteaDmgURL string `json:"giteaDmgUrl"`
ReleaseNotesURL string `json:"releaseNotesUrl"`
CloudDmgURL string `json:"cloudDmgUrl"`
CloudPassword string `json:"cloudPassword"`
CreatedAt time.Time `json:"createdAt"`
}