Added auth

This commit is contained in:
Pijus Kamandulis
2025-07-04 21:05:28 +03:00
parent b3c89a01d0
commit ef247fc843
13 changed files with 297 additions and 80 deletions

18
web/models.go Normal file
View File

@@ -0,0 +1,18 @@
package web
type PageDataBase struct {
UserName string
}
func (pageData PageDataBase) GetUserName() string {
return pageData.UserName
}
func (pageData *PageDataBase) SetUserName(userName string) {
pageData.UserName = userName
}
type IPageDataBase interface {
GetUserName() string
SetUserName(userName string)
}