- refactor LegacyQuerySingleOrder.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user