MCPcopy Create free account
hub / github.com/cloudreve/cloudreve / SetNillableUpdatedAt

Method SetNillableUpdatedAt

ent/entity_create.go:51–56  ·  view source on GitHub ↗

SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.

(t *time.Time)

Source from the content-addressed store, hash-verified

49
50// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
51func (ec *EntityCreate) SetNillableUpdatedAt(t *time.Time) *EntityCreate {
52 if t != nil {
53 ec.SetUpdatedAt(*t)
54 }
55 return ec
56}
57
58// SetDeletedAt sets the "deleted_at" field.
59func (ec *EntityCreate) SetDeletedAt(t time.Time) *EntityCreate {

Callers

nothing calls this directly

Calls 1

SetUpdatedAtMethod · 0.95

Tested by

no test coverage detected