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

Method SetNillableViews

ent/share_create.go:91–96  ·  view source on GitHub ↗

SetNillableViews sets the "views" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

89
90// SetNillableViews sets the "views" field if the given value is not nil.
91func (sc *ShareCreate) SetNillableViews(i *int) *ShareCreate {
92 if i != nil {
93 sc.SetViews(*i)
94 }
95 return sc
96}
97
98// SetDownloads sets the "downloads" field.
99func (sc *ShareCreate) SetDownloads(i int) *ShareCreate {

Callers

nothing calls this directly

Calls 1

SetViewsMethod · 0.95

Tested by

no test coverage detected