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

23 lines
419 B
Go
Raw Normal View History

2022-10-03 11:53:27 +03:00
package view
import "github.com/muety/wakapi/models"
type LeaderboardViewModel struct {
User *models.User
By string
Items []*models.LeaderboardItem
ApiKey string
Success string
Error string
2022-10-03 11:53:27 +03:00
}
func (s *LeaderboardViewModel) WithSuccess(m string) *LeaderboardViewModel {
s.Success = m
return s
}
func (s *LeaderboardViewModel) WithError(m string) *LeaderboardViewModel {
s.Error = m
return s
}