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.
61 lines
1.5 KiB
Go
61 lines
1.5 KiB
Go
package model
|
|
|
|
import (
|
|
"joybuywork/internal/plugins/jsonm"
|
|
"joybuywork/internal/repository/mtype"
|
|
)
|
|
|
|
func (m *FissionCampaignStyle) SetShare(val []int64) {
|
|
m.Share, _ = jsonm.MarshalToString(val)
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) GetShare() (val []int64) {
|
|
_ = jsonm.StrUnmarshal(m.Share, &val)
|
|
return
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) SetIconOpen(val []int32) {
|
|
m.IconOpen, _ = jsonm.MarshalToString(val)
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) GetIconOpen() (val []int32) {
|
|
_ = jsonm.StrUnmarshal(m.IconOpen, &val)
|
|
return
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) SetWheelStyle(val mtype.WheelStyle) {
|
|
m.CustomStyle, _ = jsonm.ToObjString(val)
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) GetWheelStyle() (val mtype.WheelStyle) {
|
|
_ = jsonm.StrUnmarshal(m.CustomStyle, &val)
|
|
return
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) SetGridStyle(val mtype.GridStyle) {
|
|
m.CustomStyle, _ = jsonm.ToObjString(val)
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) GetGridStyle() (val mtype.GridStyle) {
|
|
_ = jsonm.StrUnmarshal(m.CustomStyle, &val)
|
|
return
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) SetFlipStyle(val mtype.FlipStyle) {
|
|
m.CustomStyle, _ = jsonm.ToObjString(val)
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) GetFlipStyle() (val mtype.FlipStyle) {
|
|
_ = jsonm.StrUnmarshal(m.CustomStyle, &val)
|
|
return
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) SetGashaponStyle(val mtype.GashaponStyle) {
|
|
m.CustomStyle, _ = jsonm.ToObjString(val)
|
|
}
|
|
|
|
func (m *FissionCampaignStyle) GetGashaponStyle() (val mtype.GashaponStyle) {
|
|
_ = jsonm.StrUnmarshal(m.CustomStyle, &val)
|
|
return
|
|
}
|