30 lines
723 B
Go
30 lines
723 B
Go
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
|
|
}
|