feat: add new user service object that implements iris context User interface

This commit is contained in:
Derrick Hammer 2023-06-09 07:36:44 -04:00
parent 892f093d93
commit a14dad43ed
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 18 additions and 0 deletions

18
service/account/user.go Normal file
View File

@ -0,0 +1,18 @@
package account
import (
"git.lumeweb.com/LumeWeb/portal/model"
"strconv"
)
type User struct {
account *model.Account
}
func (u User) GetID() (string, error) {
return strconv.Itoa(int(u.account.ID)), nil
}
func NewUser(account *model.Account) *User {
return &User{account: account}
}