1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: add front page (resolve #34)

This commit is contained in:
Ferdinand Mütsch
2020-11-28 20:23:40 +01:00
parent 4a78f66778
commit 16b9aa2282
11 changed files with 241 additions and 156 deletions

16
models/view/login.go Normal file
View File

@@ -0,0 +1,16 @@
package view
type LoginViewModel struct {
Success string
Error string
}
func (s *LoginViewModel) WithSuccess(m string) *LoginViewModel {
s.Success = m
return s
}
func (s *LoginViewModel) WithError(m string) *LoginViewModel {
s.Error = m
return s
}