✨ add mongodb/jwt
This commit is contained in:
27
app/core/api/internal/config/config.go
Normal file
27
app/core/api/internal/config/config.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package config
|
||||
|
||||
import "github.com/zeromicro/go-zero/rest"
|
||||
|
||||
type Config struct {
|
||||
rest.RestConf
|
||||
Auth struct {
|
||||
AccessSecret string
|
||||
AccessExpire int64
|
||||
}
|
||||
Mysql struct {
|
||||
DataSource string
|
||||
}
|
||||
Redis struct {
|
||||
Host string
|
||||
Type string
|
||||
Pass string
|
||||
Tls bool
|
||||
}
|
||||
Mongo struct {
|
||||
Uri string
|
||||
Username string
|
||||
Password string
|
||||
AuthSource string
|
||||
Database string
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user