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.

25 lines
569 B
Go

package model
import (
"joybuywork/internal/plugins/jsonm"
"joybuywork/internal/repository/mtype"
)
func (s *FissionCampaignKeep) SetInvite(val *mtype.KeepInvite) {
s.Invite, _ = jsonm.MarshalToString(val)
}
func (s *FissionCampaignKeep) GetInvite() (val *mtype.KeepInvite) {
_ = jsonm.StrUnmarshal(s.Invite, &val)
return
}
func (s *FissionCampaignKeep) SetKeepTalk(val []*mtype.KeepTalk) {
s.TalkText, _ = jsonm.MarshalToString(val)
}
func (s *FissionCampaignKeep) GetKeepTalk() (val []*mtype.KeepTalk) {
_ = jsonm.StrUnmarshal(s.TalkText, &val)
return
}