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

Method AddDownloads

ent/mutation.go:11811–11817  ·  view source on GitHub ↗

AddDownloads adds i to the "downloads" field.

(i int)

Source from the content-addressed store, hash-verified

11809
11810// AddDownloads adds i to the "downloads" field.
11811func (m *ShareMutation) AddDownloads(i int) {
11812 if m.adddownloads != nil {
11813 *m.adddownloads += i
11814 } else {
11815 m.adddownloads = &i
11816 }
11817}
11818
11819// AddedDownloads returns the value that was added to the "downloads" field in this mutation.
11820func (m *ShareMutation) AddedDownloads() (r int, exists bool) {

Callers 2

AddFieldMethod · 0.95
DownloadedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected