Skip to content

Commit

Permalink
fix(account): add host to simple user
Browse files Browse the repository at this point in the history
  • Loading branch information
rot1024 committed Mar 8, 2024
1 parent eae6d3e commit 6b50be0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion account/accountdomain/user/simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,19 @@ type Simple struct {
ID ID
Name string
Email string
Host string
}

func SimpleFrom(u *User) *Simple {
if u == nil {
return nil
}
return &Simple{u.ID(), u.Name(), u.Email()}
return &Simple{
ID: u.ID(),
Name: u.Name(),
Email: u.Email(),
Host: u.Host(),
}
}

type SimpleList []*Simple

0 comments on commit 6b50be0

Please sign in to comment.