AddDownloads adds i to the "downloads" field.
(i int)
| 11809 | |
| 11810 | // AddDownloads adds i to the "downloads" field. |
| 11811 | func (m *ShareMutation) AddDownloads(i int) { |
| 11812 | if m.adddownloads != nil { |
| 11813 | *m.adddownloads += i |
| 11814 | } else { |
| 11815 | m.adddownloads = &i |
| 11816 | } |
| 11817 | } |
| 11818 | |
| 11819 | // AddedDownloads returns the value that was added to the "downloads" field in this mutation. |
| 11820 | func (m *ShareMutation) AddedDownloads() (r int, exists bool) { |
no outgoing calls
no test coverage detected