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

Method AddViews

ent/mutation.go:11755–11761  ·  view source on GitHub ↗

AddViews adds i to the "views" field.

(i int)

Source from the content-addressed store, hash-verified

11753
11754// AddViews adds i to the "views" field.
11755func (m *ShareMutation) AddViews(i int) {
11756 if m.addviews != nil {
11757 *m.addviews += i
11758 } else {
11759 m.addviews = &i
11760 }
11761}
11762
11763// AddedViews returns the value that was added to the "views" field in this mutation.
11764func (m *ShareMutation) AddedViews() (r int, exists bool) {

Callers 2

AddFieldMethod · 0.95
ViewedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected