2020-11-06 23:19:54 +03:00
|
|
|
package view
|
|
|
|
|
|
|
|
type ImprintViewModel struct {
|
2023-01-02 20:05:28 +03:00
|
|
|
Messages
|
2020-11-06 23:19:54 +03:00
|
|
|
HtmlText string
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *ImprintViewModel) WithSuccess(m string) *ImprintViewModel {
|
2023-01-02 20:05:28 +03:00
|
|
|
s.SetSuccess(m)
|
2020-11-06 23:19:54 +03:00
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *ImprintViewModel) WithError(m string) *ImprintViewModel {
|
2023-01-02 20:05:28 +03:00
|
|
|
s.SetError(m)
|
2020-11-06 23:19:54 +03:00
|
|
|
return s
|
|
|
|
}
|
|
|
|
|
|
|
|
func (s *ImprintViewModel) WithHtmlText(t string) *ImprintViewModel {
|
|
|
|
s.HtmlText = t
|
|
|
|
return s
|
|
|
|
}
|