feat(plugin): add SCUM ownership migration foundation
This commit is contained in:
@@ -179,6 +179,9 @@ type GamePluginPageBody struct {
|
||||
Key string `json:"key"`
|
||||
Title string `json:"title"`
|
||||
Path string `json:"path"`
|
||||
BundleKey string `json:"bundleKey"`
|
||||
BundleVersion string `json:"bundleVersion"`
|
||||
BundleIntegritySHA256 string `json:"bundleIntegritySha256"`
|
||||
Permissions []string `json:"permissions,omitempty"`
|
||||
BridgeActions []string `json:"bridgeActions,omitempty"`
|
||||
}
|
||||
@@ -1880,6 +1883,7 @@ func pagesToDomain(pages []GamePluginPageBody) []domain.GamePluginPage {
|
||||
Key: page.Key,
|
||||
Title: page.Title,
|
||||
Path: page.Path,
|
||||
Bundle: domain.PluginPageBundle{Key: page.BundleKey, Version: page.BundleVersion, IntegritySHA256: page.BundleIntegritySHA256},
|
||||
Permissions: domain.CopyStringSlice(page.Permissions),
|
||||
BridgeActions: domain.CopyStringSlice(page.BridgeActions),
|
||||
}
|
||||
@@ -1897,6 +1901,9 @@ func pagesFromDomain(pages []domain.GamePluginPage) []GamePluginPageBody {
|
||||
Key: page.Key,
|
||||
Title: page.Title,
|
||||
Path: page.Path,
|
||||
BundleKey: page.Bundle.Key,
|
||||
BundleVersion: page.Bundle.Version,
|
||||
BundleIntegritySHA256: page.Bundle.IntegritySHA256,
|
||||
Permissions: domain.CopyStringSlice(page.Permissions),
|
||||
BridgeActions: domain.CopyStringSlice(page.BridgeActions),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user