This commit is contained in:
Mateusz Mikołajczyk 2025-08-05 08:54:53 +02:00
parent f693a5ed5f
commit d74c17ab45
2 changed files with 16 additions and 0 deletions

View File

@ -23,3 +23,11 @@ func (d *Date) Decode(de *jx.Decoder) error {
d.Time, err = time.Parse("2006-01-02", value)
return err
}
func (d *Date) MarshalJSON() ([]byte, error) {
return []byte{0x00, 0x01, 0x02}, nil
}
func (d *Date) UnmarshalJSON(data []byte) error {
return nil
}

View File

@ -40,3 +40,11 @@ func (o *Decimal) Decode(d *jx.Decoder) error {
})
return err
}
func (d *Decimal) MarshalJSON() ([]byte, error) {
return []byte{0x00, 0x01, 0x02}, nil
}
func (d *Decimal) UnmarshalJSON(data []byte) error {
return nil
}