MSP-1388 [+] тесты

This commit is contained in:
Leonid Nikolaev authored and d1slike committed 2023-02-01 13:44:29 +03:00
1 parent 9bd31bf6c9
commit 42d2dd18ac
22 files changed
+160 -700

No files matched your search

-27
View File
@@ -1,27 +0,0 @@
package entity
import (
"database/sql/driver"
"github.com/integration-system/isp-kit/json"
)
type Message struct {
Id int64
Version int64
Data MessageData
}
type MessageData struct {
Text string
}
// nolint
func (m *MessageData) Scan(src interface{}) error {
return json.Unmarshal(src.([]byte), m)
}
func (m MessageData) Value() (driver.Value, error) {
bytes, err := json.Marshal(m)
return driver.Value(bytes), err
}
-6
View File
@@ -1,6 +0,0 @@
package entity
type Object struct {
Id string
Name string
}