mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
17 lines
259 B
Go
17 lines
259 B
Go
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
|
|
}
|