Add configuration and other related code, and add automatic build related frameworks. Currently, the version is not available

This commit is contained in:
2025-11-22 16:04:45 +08:00
parent 849cfcd9d7
commit 2a3ef3e52a
5 changed files with 65 additions and 16 deletions

View File

@@ -0,0 +1,17 @@
package service
// Config represents the full configuration structure
type Config struct {
Server struct {
Host string `json:"host"`
Port int `json:"port"`
} `json:"server"`
Database struct {
Host string `json:"host"`
Port int `json:"port"`
Username string `json:"username"`
Password string `json:"password"`
Database string `json:"database"`
Prefix string `json:"prefix"`
} `json:"database"`
}