| | |
| | | import ( |
| | | "basic.com/pubsub/protomsg.git" |
| | | "encoding/json" |
| | | "fmt" |
| | | "strconv" |
| | | ) |
| | | |
| | |
| | | } |
| | | var res Result |
| | | if err = json.Unmarshal(respBody, &res); err != nil { |
| | | fmt.Println(err) |
| | | logPrint(err) |
| | | return taskInfos |
| | | } |
| | | bytes, _ := json.Marshal(res.Data) |
| | |
| | | } |
| | | var res Result |
| | | if err = json.Unmarshal(respBody, &res); err != nil { |
| | | fmt.Println(err) |
| | | logPrint(err) |
| | | return taskInfos |
| | | } |
| | | bytes, _ := json.Marshal(res.Data) |
| | |
| | | } |
| | | var res Result |
| | | if err = json.Unmarshal(respBody, &res); err != nil { |
| | | fmt.Println(err) |
| | | logPrint(err) |
| | | return false,nil |
| | | } |
| | | return res.Success,res.Data |