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

Method SetNillableDownloads

ent/share_update.go:488–493  ·  view source on GitHub ↗

SetNillableDownloads sets the "downloads" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

486
487// SetNillableDownloads sets the "downloads" field if the given value is not nil.
488func (suo *ShareUpdateOne) SetNillableDownloads(i *int) *ShareUpdateOne {
489 if i != nil {
490 suo.SetDownloads(*i)
491 }
492 return suo
493}
494
495// AddDownloads adds i to the "downloads" field.
496func (suo *ShareUpdateOne) AddDownloads(i int) *ShareUpdateOne {

Callers

nothing calls this directly

Calls 1

SetDownloadsMethod · 0.95

Tested by

no test coverage detected