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

Method SetViews

ent/share_update.go:460–464  ·  view source on GitHub ↗

SetViews sets the "views" field.

(i int)

Source from the content-addressed store, hash-verified

458
459// SetViews sets the "views" field.
460func (suo *ShareUpdateOne) SetViews(i int) *ShareUpdateOne {
461 suo.mutation.ResetViews()
462 suo.mutation.SetViews(i)
463 return suo
464}
465
466// SetNillableViews sets the "views" field if the given value is not nil.
467func (suo *ShareUpdateOne) SetNillableViews(i *int) *ShareUpdateOne {

Callers 1

SetNillableViewsMethod · 0.95

Calls 2

ResetViewsMethod · 0.80
SetViewsMethod · 0.45

Tested by

no test coverage detected