MSP-1388 [+] тесты
This commit is contained in:
1 parent
9bd31bf6c9
commit
42d2dd18ac
22 files changed
+160
-700
No files matched your search
@@ -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
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
package entity
|
||||
|
||||
type Object struct {
|
||||
Id string
|
||||
Name string
|
||||
}
|
||||
Reference in new issue
Block a user