copy

package
v1.35.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Types

type Copy

type Copy struct {
	mixin.Model[Copy]
	AdIntegration

	Type Type   `json:"type" orm:"default:content"`
	Text string `json:"text" datastore:",noindex"`

	ParentCopyId string `json:"parentCopyId"`

	// Only for filters and searches, don't rely on this after you get it out
	// of the db. Always check m.ParentCopyId != "".
	IsParent bool `json:"isParent"`
}

func New

func New(db *datastore.Datastore) *Copy

func (Copy) Fork

func (m Copy) Fork() *Copy

func (Copy) GetCopySearchFieldAndIds

func (m Copy) GetCopySearchFieldAndIds() (string, []string)

func (Copy) GetParentCopyId

func (m Copy) GetParentCopyId() string

func (*Copy) Load

func (m *Copy) Load(ps []datastore.Property) (err error)

func (*Copy) Save

func (m *Copy) Save() (ps []datastore.Property, err error)

type Type

type Type string
const (
	HeadlineType Type = "headline"
	ContentType  Type = "content"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL