Initial updates server repository commit.

Reinitialize repository history and exclude generated OTA artifact outputs.

Made-with: Cursor
This commit is contained in:
2026-03-09 21:33:34 +08:00
commit a0ef7f430d
14 changed files with 1466 additions and 0 deletions

47
internal/model/types.go Normal file
View File

@@ -0,0 +1,47 @@
package model
import "time"
type MetadataFile struct {
Version int `json:"version"`
FileMetadata struct {
Android PlatformMetadata `json:"android"`
IOS PlatformMetadata `json:"ios"`
} `json:"fileMetadata"`
}
type PlatformMetadata struct {
Bundle string `json:"bundle"`
Assets []MetadataAssetEl `json:"assets"`
}
type MetadataAssetEl struct {
Path string `json:"path"`
Ext string `json:"ext"`
}
type AssetMetadata struct {
Hash string `json:"hash"`
Key string `json:"key"`
FileExtension string `json:"fileExtension"`
ContentType string `json:"contentType"`
URL string `json:"url"`
}
type Manifest struct {
ID string `json:"id"`
CreatedAt string `json:"createdAt"`
RuntimeVersion string `json:"runtimeVersion"`
Assets []AssetMetadata `json:"assets"`
LaunchAsset AssetMetadata `json:"launchAsset"`
Metadata map[string]any `json:"metadata"`
Extra map[string]any `json:"extra"`
}
type ReleaseInfo struct {
RuntimeVersion string `json:"runtimeVersion"`
ReleaseID string `json:"releaseId"`
Path string `json:"path"`
CreatedAt time.Time `json:"createdAt"`
}