SetViews sets the "views" field.
(i int)
| 458 | |
| 459 | // SetViews sets the "views" field. |
| 460 | func (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. |
| 467 | func (suo *ShareUpdateOne) SetNillableViews(i *int) *ShareUpdateOne { |
no test coverage detected