feature: mongoDB 支持 (#1565)

* feature: mongoDB 支持

* update: 修改错误mongo索引示例

* update: 在system添加use-mongo 开关开启或者关闭mongo
This commit is contained in:
SliverHorn
2023-10-14 13:59:30 +08:00
committed by GitHub
parent b3dbb8d4be
commit 232aaad090
12 changed files with 345 additions and 1 deletions

View File

@@ -4,6 +4,7 @@ type Server struct {
JWT JWT `mapstructure:"jwt" json:"jwt" yaml:"jwt"`
Zap Zap `mapstructure:"zap" json:"zap" yaml:"zap"`
Redis Redis `mapstructure:"redis" json:"redis" yaml:"redis"`
Mongo Mongo `json:"mongo" yaml:"mongo" mapstructure:"mongo"`
Email Email `mapstructure:"email" json:"email" yaml:"email"`
System System `mapstructure:"system" json:"system" yaml:"system"`
Captcha Captcha `mapstructure:"captcha" json:"captcha" yaml:"captcha"`