Base Project

This commit is contained in:
Tran Anh Tuan
2026-05-08 14:32:24 +07:00
parent 5a9249c9ea
commit 6a4a96e0ca
74 changed files with 6749 additions and 0 deletions

View 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
}