mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
23 lines
344 B
Go
23 lines
344 B
Go
package view
|
|
|
|
type LoginViewModel struct {
|
|
Messages
|
|
TotalUsers int
|
|
AllowSignup bool
|
|
}
|
|
|
|
type SetPasswordViewModel struct {
|
|
LoginViewModel
|
|
Token string
|
|
}
|
|
|
|
func (s *LoginViewModel) WithSuccess(m string) *LoginViewModel {
|
|
s.SetSuccess(m)
|
|
return s
|
|
}
|
|
|
|
func (s *LoginViewModel) WithError(m string) *LoginViewModel {
|
|
s.SetError(m)
|
|
return s
|
|
}
|