AddRemainDownloads adds i to the "remain_downloads" field.
(i int)
| 11914 | |
| 11915 | // AddRemainDownloads adds i to the "remain_downloads" field. |
| 11916 | func (m *ShareMutation) AddRemainDownloads(i int) { |
| 11917 | if m.addremain_downloads != nil { |
| 11918 | *m.addremain_downloads += i |
| 11919 | } else { |
| 11920 | m.addremain_downloads = &i |
| 11921 | } |
| 11922 | } |
| 11923 | |
| 11924 | // AddedRemainDownloads returns the value that was added to the "remain_downloads" field in this mutation. |
| 11925 | func (m *ShareMutation) AddedRemainDownloads() (r int, exists bool) { |
no outgoing calls
no test coverage detected