feat: new function for add user in manger console user list page

This commit is contained in:
RockYang
2023-08-01 16:02:49 +08:00
parent c23c285f82
commit 0fce1c0fd8
5 changed files with 105 additions and 33 deletions

View File

@@ -56,6 +56,10 @@ func Stamp2str(timestamp int64) string {
// Str2stamp 字符串转时间戳
func Str2stamp(str string) int64 {
if len(str) == 0 {
return 0
}
layout := "2006-01-02 15:04:05"
t, err := time.Parse(layout, str)
if err != nil {