- weimob wsc api
This commit is contained in:
@@ -190,6 +190,13 @@ func Bool2String(value bool) string {
|
||||
return "false"
|
||||
}
|
||||
|
||||
func Bool2Int(value bool) int {
|
||||
if value {
|
||||
return 1
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func Str2Int64WithDefault(str string, defValue int64) int64 {
|
||||
retVal, err := strconv.ParseInt(str, 10, 64)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user