mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
21 lines
408 B
Go
21 lines
408 B
Go
package view
|
|
|
|
import "github.com/muety/wakapi/models"
|
|
|
|
type SettingsViewModel struct {
|
|
User *models.User
|
|
LanguageMappings []*models.LanguageMapping
|
|
Success string
|
|
Error string
|
|
}
|
|
|
|
func (s *SettingsViewModel) WithSuccess(m string) *SettingsViewModel {
|
|
s.Success = m
|
|
return s
|
|
}
|
|
|
|
func (s *SettingsViewModel) WithError(m string) *SettingsViewModel {
|
|
s.Error = m
|
|
return s
|
|
}
|