- refactor LegacyQuerySingleOrder.

This commit is contained in:
gazebo
2018-06-08 19:27:33 +08:00
parent 51da947103
commit 35e46f7563
2 changed files with 15 additions and 28 deletions

View File

@@ -4,6 +4,7 @@ import (
"bytes"
"encoding/json"
"reflect"
"strconv"
)
func GetConcretValue(value reflect.Value) reflect.Value {
@@ -91,3 +92,13 @@ func Bool2String(value bool) string {
}
return "false"
}
func Str2Int(str string) int {
retVal, _ := strconv.Atoi(str)
return retVal
}
func Str2Int64(str string) int64 {
retVal, _ := strconv.ParseInt(str, 10, 64)
return retVal
}