Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func GetAllStorehouse() {
- type FoodCost struct {
- ID interface{}
- Date string
- PointHash string
- DateStr string
- PriceID int64
- Name string
- Count float64
- CostPrice float64
- }
- result, err := module_connect.RequestNewRawValuesWithTimeOut(
- "188.120.240.81:50040",
- 9999999999999,
- structExchange.WMessage{
- Query: "Select",
- Tables: []structExchange.WTable{
- {
- Name: "FudCost",
- TypeParameter: "PriceID",
- Values: []interface{}{
- FoodCost{
- ID: 5389845,
- Date: "2019-09-20T17:06:35.099402Z",
- DateStr: "",
- PriceID: 589,
- Name: "",
- Count: 1,
- CostPrice: 0,
- PointHash: "c4bf0aef0e166a32f899b98841655ea7be08f8c1dd59a28ca28aa86abb92260ce73724f5c3a38a1369479281ff92abc155ca724b9f7b774f11ce8bd81a9a9b44",
- },
- },
- },
- },
- },
- )
- if err != nil {
- panic(err)
- }
- fmt.Println(string(result.Tables[0].Values))
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement