NewUser creates a user and returns the user.
(id uint)
| 52 | |
| 53 | // NewUser creates a user and returns the user. |
| 54 | func (d *Database) NewUser(id uint) *model.User { |
| 55 | return d.NewUserWithName(id, "user"+fmt.Sprint(id)) |
| 56 | } |
| 57 | |
| 58 | // NewUserWithName creates a user with a name and returns the user. |
| 59 | func (d *Database) NewUserWithName(id uint, name string) *model.User { |