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

23 lines
344 B
Go
Raw Normal View History

2020-11-28 22:23:40 +03:00
package view
type LoginViewModel struct {
Messages
TotalUsers int
AllowSignup bool
2020-11-28 22:23:40 +03:00
}
2021-04-05 23:57:57 +03:00
type SetPasswordViewModel struct {
LoginViewModel
Token string
}
2020-11-28 22:23:40 +03:00
func (s *LoginViewModel) WithSuccess(m string) *LoginViewModel {
s.SetSuccess(m)
2020-11-28 22:23:40 +03:00
return s
}
func (s *LoginViewModel) WithError(m string) *LoginViewModel {
s.SetError(m)
2020-11-28 22:23:40 +03:00
return s
}