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
565 B
Go
25 lines
565 B
Go
package model
|
|
|
|
import (
|
|
"joybuywork/internal/plugins/jsonm"
|
|
"joybuywork/internal/repository/mtype"
|
|
)
|
|
|
|
func (m *ProjectUserCoinLog) SetOtherData(val mtype.PointsLogOther) {
|
|
m.OtherData, _ = jsonm.MarshalToString(val)
|
|
}
|
|
|
|
func (m *ProjectUserCoinLog) GetOtherData() (val mtype.PointsLogOther) {
|
|
_ = jsonm.StrUnmarshal(m.OtherData, &val)
|
|
return
|
|
}
|
|
|
|
func (m *ProjectUserCoinLog) SetReq(val mtype.PointsLogReq) {
|
|
m.Req, _ = jsonm.MarshalToString(val)
|
|
}
|
|
|
|
func (m *ProjectUserCoinLog) GetReq() (val mtype.PointsLogReq) {
|
|
_ = jsonm.StrUnmarshal(m.Req, &val)
|
|
return
|
|
}
|