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.

24 lines
500 B
Go

package model
import (
"joybuywork/internal/plugins/jsonm"
"joybuywork/internal/repository/mtype"
)
func (s *FissionCoinLog) GetVal() (val mtype.CoinLogVal) {
_ = jsonm.StrUnmarshal(s.Val, &val)
return
}
func (s *FissionCoinLog) SetVal(val mtype.CoinLogVal) {
s.Val, _ = jsonm.MarshalToString(val)
}
func (s *FissionCoinLog) GetTypeTitle() string {
return mtype.FissionCoinLogType[s.Type]
}
func (s *FissionCoinLog) GetSourceTitle() string {
return mtype.FissionCoinLogSource[s.Source]
}