mirror of
https://github.com/muety/wakapi.git
synced 2023-08-10 21:12:56 +03:00
20 lines
284 B
Go
20 lines
284 B
Go
|
package view
|
||
|
|
||
|
type BasicViewModel interface {
|
||
|
SetError(string)
|
||
|
SetSuccess(string)
|
||
|
}
|
||
|
|
||
|
type Messages struct {
|
||
|
Success string
|
||
|
Error string
|
||
|
}
|
||
|
|
||
|
func (m *Messages) SetError(message string) {
|
||
|
m.Error = message
|
||
|
}
|
||
|
|
||
|
func (m *Messages) SetSuccess(message string) {
|
||
|
m.Success = message
|
||
|
}
|