This commit is contained in:
2026-01-31 08:30:58 -08:00
parent 16c261bd36
commit af5231747a
16 changed files with 895 additions and 24 deletions
+2
View File
@@ -74,10 +74,12 @@ type ServiceContext struct {
func NewServiceContext(c config.Config) *ServiceContext {
// gorm initialize
fmt.Printf(" [Debug] MySQL Config -> Addr: %s, User: %s, DB: %s\n", c.MySQL.Addr, c.MySQL.Username, c.MySQL.Dbname)
db, err := orm.ConnectMysql(orm.Mysql{
Config: c.MySQL,
})
if err != nil {
fmt.Printf(" [Debug] Connection Error: %v\n", err)
panic(err.Error())
}
rds := redis.NewClient(&redis.Options{