serverctl/pkg/application/users/model.go

11 lines
132 B
Go
Raw Normal View History

2022-02-13 21:45:27 +01:00
package users
type User struct {
Id int
Email string
}
func NewUser(id int, email string) *User {
return &User{id, email}
}