8 lines
188 B
Go
8 lines
188 B
Go
package models
|
|
|
|
// Create implements the create method to assign a user to a team
|
|
func (tm *TeamMember) Create(doer *User) (err error) {
|
|
//tm.TeamID = id
|
|
_, err = x.Insert(tm)
|
|
return
|
|
}
|