AddShares adds the "shares" edges to the Share entity.
(s ...*Share)
| 247 | |
| 248 | // AddShares adds the "shares" edges to the Share entity. |
| 249 | func (fc *FileCreate) AddShares(s ...*Share) *FileCreate { |
| 250 | ids := make([]int, len(s)) |
| 251 | for i := range s { |
| 252 | ids[i] = s[i].ID |
| 253 | } |
| 254 | return fc.AddShareIDs(ids...) |
| 255 | } |
| 256 | |
| 257 | // AddDirectLinkIDs adds the "direct_links" edge to the DirectLink entity by IDs. |
| 258 | func (fc *FileCreate) AddDirectLinkIDs(ids ...int) *FileCreate { |
nothing calls this directly
no test coverage detected