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

Method AddDownloads

ent/share_update.go:496–499  ·  view source on GitHub ↗

AddDownloads adds i to the "downloads" field.

(i int)

Source from the content-addressed store, hash-verified

494
495// AddDownloads adds i to the "downloads" field.
496func (suo *ShareUpdateOne) AddDownloads(i int) *ShareUpdateOne {
497 suo.mutation.AddDownloads(i)
498 return suo
499}
500
501// SetExpires sets the "expires" field.
502func (suo *ShareUpdateOne) SetExpires(t time.Time) *ShareUpdateOne {

Callers

nothing calls this directly

Calls 1

AddDownloadsMethod · 0.45

Tested by

no test coverage detected