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

Method AddStorage

ent/mutation.go:15513–15519  ·  view source on GitHub ↗

AddStorage adds i to the "storage" field.

(i int64)

Source from the content-addressed store, hash-verified

15511
15512// AddStorage adds i to the "storage" field.
15513func (m *UserMutation) AddStorage(i int64) {
15514 if m.addstorage != nil {
15515 *m.addstorage += i
15516 } else {
15517 m.addstorage = &i
15518 }
15519}
15520
15521// AddedStorage returns the value that was added to the "storage" field in this mutation.
15522func (m *UserMutation) AddedStorage() (r int64, exists bool) {

Callers 2

AddFieldMethod · 0.95
ApplyStorageDiffMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected