Rebuild SCUM plugin data ownership
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
package domain
|
||||
|
||||
import "time"
|
||||
|
||||
// PluginDataRecord is an opaque plugin-owned platform record. Platform scopes
|
||||
// it but does not interpret the collection name or payload fields.
|
||||
type PluginDataRecord struct {
|
||||
ID string
|
||||
PluginID string
|
||||
ServerInstanceID string
|
||||
Collection string
|
||||
Key string
|
||||
Value map[string]any
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
}
|
||||
|
||||
type PluginDataFilter struct {
|
||||
PluginID string
|
||||
ServerInstanceID string
|
||||
Collection string
|
||||
Key string
|
||||
Limit int
|
||||
}
|
||||
|
||||
func CopyPluginDataRecord(value PluginDataRecord) PluginDataRecord {
|
||||
value.Value = CopyGameClientBridgePayload(value.Value)
|
||||
return value
|
||||
}
|
||||
Reference in New Issue
Block a user