Advertisement
Guest User

Untitled

a guest
Sep 23rd, 2019
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. func GetAllStorehouse() {
  2. type FoodCost struct {
  3. ID interface{}
  4. Date string
  5. PointHash string
  6. DateStr string
  7. PriceID int64
  8. Name string
  9. Count float64
  10. CostPrice float64
  11. }
  12.  
  13. result, err := module_connect.RequestNewRawValuesWithTimeOut(
  14. "188.120.240.81:50040",
  15. 9999999999999,
  16. structExchange.WMessage{
  17. Query: "Select",
  18. Tables: []structExchange.WTable{
  19. {
  20. Name: "FudCost",
  21. TypeParameter: "PriceID",
  22. Values: []interface{}{
  23. FoodCost{
  24. ID: 5389845,
  25. Date: "2019-09-20T17:06:35.099402Z",
  26. DateStr: "",
  27. PriceID: 589,
  28. Name: "",
  29. Count: 1,
  30. CostPrice: 0,
  31. PointHash: "c4bf0aef0e166a32f899b98841655ea7be08f8c1dd59a28ca28aa86abb92260ce73724f5c3a38a1369479281ff92abc155ca724b9f7b774f11ce8bd81a9a9b44",
  32. },
  33. },
  34. },
  35. },
  36. },
  37. )
  38.  
  39. if err != nil {
  40. panic(err)
  41. }
  42.  
  43. fmt.Println(string(result.Tables[0].Values))
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement