11 2024 档案
摘要:package storage import ( "context" "WchimeGinSystem/conf" "WchimeGinSystem/utils" "io" "log" "net/http" "net/url" "path/filepath" "strings" "time" "gi
阅读全文
摘要:package storage import ( "context" "fmt" "WchimeGinSystem/conf" "WchimeGinSystem/utils" "io" "log" "path/filepath" "strings" "time" "github.com/minio/
阅读全文
摘要:package cache import ( "context" "fmt" "WchimeGinSystem/conf" "log" "time" "github.com/go-redis/redis/v8" ) var CTX = context.Background() var RDB *re
阅读全文
摘要:package jwtauth import ( "WchimeGinSystem/conf" "errors" "time" "github.com/golang-jwt/jwt/v5" ) type MyClaims struct { jwt.RegisteredClaims UserId in
阅读全文
摘要:安装所需的库 go get gopkg.in/ini.v1 我这里集成到gin中配合之前的解密一起使用 package conf import ( "fmt" "gin__tte/utils/encryption" "log" "gopkg.in/ini.v1" ) const SERVER_NAM
阅读全文
摘要:go实现是和之前我python和jsAES加解密的方式一样,可以相互解密。 文件结构 encryption.go package encryption import ( "bytes" "crypto/aes" "crypto/cipher" "crypto/sha256" "encoding/ba
阅读全文