Base Project
This commit is contained in:
43
internal/models/config_model.go
Normal file
43
internal/models/config_model.go
Normal file
@@ -0,0 +1,43 @@
|
||||
package models
|
||||
|
||||
type Config struct {
|
||||
Server ServerConfig
|
||||
Database DatabaseConfig
|
||||
Cache CacheConfig
|
||||
Admin AdminConfig
|
||||
JWT JWTConfig
|
||||
}
|
||||
|
||||
type AdminConfig struct {
|
||||
Username string
|
||||
Email string
|
||||
Password string
|
||||
FullName string
|
||||
}
|
||||
|
||||
type JWTConfig struct {
|
||||
SecretKey string
|
||||
ExpirationHours int
|
||||
}
|
||||
|
||||
type DatabaseConfig struct {
|
||||
Host string
|
||||
Port string
|
||||
Username string
|
||||
Password string
|
||||
Name string
|
||||
}
|
||||
|
||||
type ServerConfig struct {
|
||||
Host string
|
||||
Port string
|
||||
PortFrontend string
|
||||
KeyPassword string
|
||||
}
|
||||
|
||||
type CacheConfig struct {
|
||||
Username string
|
||||
Password string
|
||||
Host string
|
||||
Port string
|
||||
}
|
||||
Reference in New Issue
Block a user