You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
312 B
Go
17 lines
312 B
Go
package model
|
|
|
|
import (
|
|
"joybuywork/internal/plugins/jsonm"
|
|
"joybuywork/internal/repository/mtype"
|
|
)
|
|
|
|
func (s *FissionChatMsg) SetVal(val mtype.ChatMsgVal) {
|
|
s.Val, _ = jsonm.ToObjString(val)
|
|
return
|
|
}
|
|
|
|
func (s *FissionChatMsg) GetVal() (val mtype.ChatMsgVal) {
|
|
_ = jsonm.StrUnmarshal(s.Val, &val)
|
|
return
|
|
}
|