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

Method AddRemainDownloads

ent/mutation.go:11916–11922  ·  view source on GitHub ↗

AddRemainDownloads adds i to the "remain_downloads" field.

(i int)

Source from the content-addressed store, hash-verified

11914
11915// AddRemainDownloads adds i to the "remain_downloads" field.
11916func (m *ShareMutation) AddRemainDownloads(i int) {
11917 if m.addremain_downloads != nil {
11918 *m.addremain_downloads += i
11919 } else {
11920 m.addremain_downloads = &i
11921 }
11922}
11923
11924// AddedRemainDownloads returns the value that was added to the "remain_downloads" field in this mutation.
11925func (m *ShareMutation) AddedRemainDownloads() (r int, exists bool) {

Callers 2

AddFieldMethod · 0.95
DownloadedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected