This commit is contained in:
XM-GO
2023-08-22 15:17:14 +08:00
parent 85f4f328f4
commit 4344771547
143 changed files with 13004 additions and 6957 deletions

View File

@@ -0,0 +1,24 @@
package entity
import (
"encoding/json"
)
type RuleDataJson struct {
LfData struct {
GlobalColor string `json:"globalColor"`
DataCode map[string]interface{} `json:"dataCode"`
OpenRule bool `json:"openRule"`
Setting map[string]interface{} `json:"setting"`
} `json:"lfData"`
}
// 序列化
func (m *RuleDataJson) MarshalBinary() (data []byte, err error) {
return json.Marshal(m)
}
// 反序列化
func (m *RuleDataJson) UnmarshalBinary(data []byte) error {
return json.Unmarshal(data, m)
}