| | |
| | | package bhomedbapi |
| | | |
| | | import ( |
| | | "basic.com/valib/bhshmq.git/api/bhsgo" |
| | | "basic.com/valib/bhshmq.git/proto/source/bhome_msg" |
| | | "encoding/json" |
| | | "basic.com/valib/c_bhomebus.git/api/bhsgo" |
| | | "basic.com/valib/c_bhomebus.git/proto/source/bhome_msg" |
| | | json "github.com/json-iterator/go" |
| | | "errors" |
| | | "strconv" |
| | | ) |
| | | |
| | | type SBusClient struct { |
| | | nodes []bhome_msg.BHAddress |
| | | nodes []*bhome_msg.MsgQueryTopicReply_BHNodeAddress |
| | | } |
| | | |
| | | type ProcInfo struct { |
| | |
| | | if contentType == CONTENT_TYPE_FORM || contentType == CONTENT_TYPE_MULFORM { |
| | | if body != nil { |
| | | req.PostFormMap = make(map[string][]string) |
| | | req.FormMap = map[string][]string{} |
| | | for k,v := range body { |
| | | switch v.(type) { |
| | | case string: |