feat: 完成前后端打包

This commit is contained in:
2026-03-27 18:39:53 +08:00
parent b0db64bd7b
commit 21251c6e07
8 changed files with 201 additions and 8 deletions

20
cmd/main.go Normal file
View File

@@ -0,0 +1,20 @@
package main
import (
"ckwk/internal/router"
"ckwk/pkg/log"
"net/http"
"go.uber.org/zap"
)
func main() {
router := router.SetupRouter()
if err := http.ListenAndServe(
":8080",
router,
); err != nil {
log.Error("服务启动失败", zap.Error(err))
}
}