We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0381cef commit 31e99fbCopy full SHA for 31e99fb
model/task.go
@@ -1,5 +1,7 @@
1
package model
2
3
+import "encoding/json"
4
+
5
type TaskMeta struct {
6
TaskId string `json:"taskId"`
7
TaskType string `json:"taskType"`
@@ -48,3 +50,7 @@ type JoinData struct {
48
50
ServerId string `json:"serverId"`
49
51
Status int `json:"status"`
52
}
53
54
+func (m *TaskMeta) Scan(value interface{}) error {
55
+ return json.Unmarshal(value.([]byte), m)
56
+}
0 commit comments