method

BoundTypedGlobal.RestoreAsDraft

func (global BoundTypedGlobal[Document, Update]) RestoreAsDraft( ctx context.Context, revision, expectedRevision int, actor *store.Document, ) (Document, error)

Public method BoundTypedGlobal.RestoreAsDraft from github.com/riducms/ridu/core.

Source core/typed_global.go:63

@param ctx
The ctx value.
@param revision
The revision value.
@param expectedRevision
The expectedRevision value.
@param actor
The actor value.
@returns
The declared result.

Related types

  • BoundTypedGlobal

    Typed Find, Update, Publish, Unpublish, Restore, and RestoreAsDraft methods.

  • Document

    A stored document with status and version metadata.