- weimob wsc api

This commit is contained in:
gazebo
2019-01-18 09:17:02 +08:00
parent 0d4bd09589
commit e06ec24013
6 changed files with 486 additions and 23 deletions

View File

@@ -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 {