loginToTemplate/user.go

21 lines
313 B
Go
Raw Permalink Normal View History

2022-03-01 16:55:49 +00:00
package main
type User struct {
Username string
Key string
IpAddress string
IsAdmin bool
}
func (u *User) UpdateUserKey(key string) {
u.Key = key
}
func (u *User) UpdateUserIp(ipAddress string) {
u.IpAddress = ipAddress
}
func (u *User) UpdateAdminStatus(isAdmin bool) {
u.IsAdmin = isAdmin
}