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

feat: introduce newsbox for front page (resolve #393)

This commit is contained in:
Ferdinand Mütsch
2022-08-13 10:28:36 +02:00
parent 99a3e8f5da
commit 373d969734
8 changed files with 50 additions and 8 deletions

View File

@ -1,10 +1,16 @@
package view
type Newsbox struct {
Type string `json:"type"`
Text string `json:"text"`
}
type HomeViewModel struct {
Success string
Error string
TotalHours int
TotalUsers int
Newsbox *Newsbox
}
func (s *HomeViewModel) WithSuccess(m string) *HomeViewModel {