Initial
This commit is contained in:
commit
97dc0a3570
78 files changed
+7054
No files matched your search
@@ -0,0 +1,22 @@
|
||||
package user
|
||||
|
||||
import "time"
|
||||
|
||||
type User struct {
|
||||
Id int64
|
||||
Login string
|
||||
Password string
|
||||
FullName *string
|
||||
Email *string
|
||||
IsAdmin bool
|
||||
CreatedAt time.Time
|
||||
UpdatedAt time.Time
|
||||
ActivatedAt *time.Time
|
||||
}
|
||||
|
||||
func (u *User) DisplayedName() string {
|
||||
if u.FullName != nil {
|
||||
return *u.FullName
|
||||
}
|
||||
return u.Login
|
||||
}
|
||||
Reference in new issue
Block a user