Add gc provider.

This commit is contained in:
Yang Luo
2022-03-14 00:12:02 +08:00
parent bf24594fb4
commit 5de417ecf7
9 changed files with 224 additions and 11 deletions

View File

@ -109,6 +109,14 @@ func GenerateTimeId() string {
return res
}
func GenerateSimpleTimeId() string {
timestamp := time.Now().Unix()
tm := time.Unix(timestamp, 0)
t := tm.Format("20060102150405")
return t
}
func GetId(name string) string {
return fmt.Sprintf("admin/%s", name)
}