command_keyword.go 375 B

1234567891011121314151617181920
  1. package client
  2. import (
  3. "encoding/json"
  4. "bet24.com/log"
  5. )
  6. func ParseKeyword(in string) string {
  7. msg := "ParseKeyword"
  8. var req KeyWord_req
  9. req.In = in
  10. d, _ := json.Marshal(req)
  11. resp := DoRequest(msg, string(d))
  12. if err := json.Unmarshal([]byte(resp.Data), &req); err != nil {
  13. log.Error("coreParseKeyword unmarshal failed %v", err)
  14. return ""
  15. }
  16. return req.Out
  17. }