1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00
wakapi/models/view/login.go
2021-02-12 18:49:47 +01:00

18 lines
281 B
Go

package view
type LoginViewModel struct {
Success string
Error string
TotalUsers int
}
func (s *LoginViewModel) WithSuccess(m string) *LoginViewModel {
s.Success = m
return s
}
func (s *LoginViewModel) WithError(m string) *LoginViewModel {
s.Error = m
return s
}