SetGroupID sets the "group" edge to the Group entity by ID.
(id int)
| 170 | |
| 171 | // SetGroupID sets the "group" edge to the Group entity by ID. |
| 172 | func (uc *UserCreate) SetGroupID(id int) *UserCreate { |
| 173 | uc.mutation.SetGroupID(id) |
| 174 | return uc |
| 175 | } |
| 176 | |
| 177 | // SetGroup sets the "group" edge to the Group entity. |
| 178 | func (uc *UserCreate) SetGroup(g *Group) *UserCreate { |