global.go 273 B

12345678910111213141516171819
  1. package global
  2. import (
  3. "github.com/go-logr/logr"
  4. "gorm.io/gorm"
  5. )
  6. var DB *gorm.DB
  7. var Log logr.Logger
  8. type JWTConfig struct {
  9. SigningKey string `mapstructure:"key" json:"key"`
  10. }
  11. // JWT 签名密钥
  12. var JWT = JWTConfig{
  13. SigningKey: "abcdefghijklmnopqrstuvwxyz",
  14. }