FIRST
CI / Go Backend (push) Canceled after 0s

This commit is contained in:
xyou
2026-08-07 23:39:47 +08:00
parent f2105bf14c
commit 9500c4c80a
52 changed files with 3801 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
package main
import (
"log"
"mrcc/internal/config"
"mrcc/internal/httpserver"
"mrcc/internal/logger"
)
func main() {
cfg := config.Load("economy-service", "8082")
logger.WithService(cfg.Name).Info("starting service", "port", cfg.Port)
srv := httpserver.New(cfg)
// TODO: 注册经济路由
// r := srv.Group("/api/user")
// r.GET("/balance", ...)
// r := srv.Group("/api/shop")
// r.GET("/items", ...)
log.Printf("economy-service listening on %s", cfg.Address())
if err := srv.Run(cfg.Address()); err != nil {
log.Fatal(err)
}
}