feat:Code generation upgrade(#173)

This commit is contained in:
zhangwenjian committed 2020-07-23 14:07:57 +08:00
1 parent 8c554d7ee7
commit ca62b4ef1d
8 files changed
+86 -16

No files matched your search

+4
View File
@@ -17,6 +17,10 @@ func StringToInt(e string) (int, error) {
return strconv.Atoi(e)
}
func StringToBool(e string) (bool, error) {
return strconv.ParseBool(e)
}
func GetCurrentTimeStr() string {
return time.Now().Format("2006/01/02 15:04:05")
}