refactor, go work
This commit is contained in:
13
app/loginService.go
Normal file
13
app/loginService.go
Normal file
@@ -0,0 +1,13 @@
|
||||
package app
|
||||
|
||||
type LoginUser struct {
|
||||
UserName string
|
||||
password string
|
||||
Token string
|
||||
LoggedIn bool
|
||||
}
|
||||
type LoginService struct{}
|
||||
|
||||
func (g *LoginService) Login(userName string, password string) LoginUser {
|
||||
return LoginUser{password: password, UserName: userName, Token: "test", LoggedIn: true}
|
||||
}
|
||||
Reference in New Issue
Block a user