mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
22 lines
367 B
Go
22 lines
367 B
Go
package view
|
|
|
|
type ImprintViewModel struct {
|
|
Messages
|
|
HtmlText string
|
|
}
|
|
|
|
func (s *ImprintViewModel) WithSuccess(m string) *ImprintViewModel {
|
|
s.SetSuccess(m)
|
|
return s
|
|
}
|
|
|
|
func (s *ImprintViewModel) WithError(m string) *ImprintViewModel {
|
|
s.SetError(m)
|
|
return s
|
|
}
|
|
|
|
func (s *ImprintViewModel) WithHtmlText(t string) *ImprintViewModel {
|
|
s.HtmlText = t
|
|
return s
|
|
}
|