feat: docs api design

This commit is contained in:
neo-f
2023-03-22 22:45:17 +08:00
commit 084d0de8bc
52 changed files with 3420 additions and 0 deletions

11
pkg/utils/hash.go Normal file
View File

@@ -0,0 +1,11 @@
package utils
import (
"crypto/md5"
"encoding/hex"
)
func MD5(d []byte) string {
hash := md5.Sum(d)
return hex.EncodeToString(hash[:])
}