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

19 lines
292 B
Go
Raw Normal View History

2020-11-06 23:19:54 +03:00
package view
type HomeViewModel struct {
Success string
Error string
TotalHours int
TotalUsers int
2020-11-06 23:19:54 +03:00
}
func (s *HomeViewModel) WithSuccess(m string) *HomeViewModel {
s.Success = m
return s
}
func (s *HomeViewModel) WithError(m string) *HomeViewModel {
s.Error = m
return s
}