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

Method SetNillableViews

ent/share_update.go:467–472  ·  view source on GitHub ↗

SetNillableViews sets the "views" field if the given value is not nil.

(i *int)

Source from the content-addressed store, hash-verified

465
466// SetNillableViews sets the "views" field if the given value is not nil.
467func (suo *ShareUpdateOne) SetNillableViews(i *int) *ShareUpdateOne {
468 if i != nil {
469 suo.SetViews(*i)
470 }
471 return suo
472}
473
474// AddViews adds i to the "views" field.
475func (suo *ShareUpdateOne) AddViews(i int) *ShareUpdateOne {

Callers

nothing calls this directly

Calls 1

SetViewsMethod · 0.95

Tested by

no test coverage detected