AddViews adds i to the "views" field.
(i int)
| 11753 | |
| 11754 | // AddViews adds i to the "views" field. |
| 11755 | func (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. |
| 11764 | func (m *ShareMutation) AddedViews() (r int, exists bool) { |