mirror of
https://github.com/samuelncui/yatm.git
synced 2026-11-08 04:18:03 +00:00
Unify file queries and Scan execution, retain indexed Identical results, improve Job and Preview workflows, and verify release packaging.
18 lines
690 B
Go
18 lines
690 B
Go
package entity
|
|
|
|
import (
|
|
"database/sql/driver"
|
|
|
|
"google.golang.org/protobuf/encoding/protojson"
|
|
)
|
|
|
|
func (x *PreviewSettings) Scan(src any) error { return Scan(x, src) }
|
|
func (x *PreviewSettings) Value() (driver.Value, error) { return Value(x) }
|
|
|
|
func (x *PreviewJobSettings) Scan(src any) error { return Scan(x, src) }
|
|
func (x *PreviewJobSettings) Value() (driver.Value, error) { return Value(x) }
|
|
|
|
// Persisted Settings use the protobuf JSON shape for nested generator oneofs.
|
|
func (x *PreviewSettings) MarshalJSON() ([]byte, error) { return protojson.Marshal(x) }
|
|
func (x *PreviewSettings) UnmarshalJSON(data []byte) error { return protojson.Unmarshal(data, x) }
|