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

Method SetNillableUpdatedAt

ent/user_create.go:56–61  ·  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

54
55// SetNillableUpdatedAt sets the "updated_at" field if the given value is not nil.
56func (uc *UserCreate) SetNillableUpdatedAt(t *time.Time) *UserCreate {
57 if t != nil {
58 uc.SetUpdatedAt(*t)
59 }
60 return uc
61}
62
63// SetDeletedAt sets the "deleted_at" field.
64func (uc *UserCreate) SetDeletedAt(t time.Time) *UserCreate {

Callers

nothing calls this directly

Calls 1

SetUpdatedAtMethod · 0.95

Tested by

no test coverage detected