AddedViews returns the value that was added to the "views" field in this mutation.
()
| 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) { |
| 11765 | v := m.addviews |
| 11766 | if v == nil { |
| 11767 | return |
| 11768 | } |
| 11769 | return *v, true |
| 11770 | } |
| 11771 | |
| 11772 | // ResetViews resets all changes to the "views" field. |
| 11773 | func (m *ShareMutation) ResetViews() { |
no outgoing calls
no test coverage detected