好像有戏

This commit is contained in:
des
2026-01-22 00:12:24 +08:00
parent 27c89d66f7
commit d09d9d9f1a
4 changed files with 54 additions and 42 deletions

View File

@@ -1,26 +0,0 @@
package application
import (
"context"
"github.com/gin-gonic/gin"
"github.com/go-spring/spring-core/gs"
)
type Controller interface {
RegisterRoute()
}
type AppPak struct {
core *gin.Engine
}
func (s *AppPak) ListenAndServe(sig gs.ReadySignal) error {
s.core = gin.Default()
s.core.Run("7777")
return nil
}
func (_ *AppPak) Shutdown(ctx context.Context) error {
return nil
}