MCPcopy
hub / github.com/cloudreve/cloudreve / AddedViews

Method AddedViews

ent/mutation.go:11764–11770  ·  view source on GitHub ↗

AddedViews returns the value that was added to the "views" field in this mutation.

()

Source from the content-addressed store, hash-verified

11762
11763// AddedViews returns the value that was added to the "views" field in this mutation.
11764func (m *ShareMutation) AddedViews() (r int, exists bool) {
11765 v := m.addviews
11766 if v == nil {
11767 return
11768 }
11769 return *v, true
11770}
11771
11772// ResetViews resets all changes to the "views" field.
11773func (m *ShareMutation) ResetViews() {

Callers 3

AddedFieldMethod · 0.95
sqlSaveMethod · 0.80
sqlSaveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected