2026-01-13 00:08:49 +08:00
|
|
|
package main
|
2026-01-21 17:44:51 +08:00
|
|
|
|
|
|
|
|
import (
|
2026-01-22 00:12:24 +08:00
|
|
|
"Crimson-Gatekeeper/internal/common"
|
|
|
|
|
"Crimson-Gatekeeper/internal/route"
|
|
|
|
|
"fmt"
|
2026-01-21 17:44:51 +08:00
|
|
|
|
|
|
|
|
"github.com/go-spring/spring-core/gs"
|
|
|
|
|
)
|
|
|
|
|
|
2026-01-21 19:40:21 +08:00
|
|
|
type Test struct{}
|
|
|
|
|
|
2026-01-21 17:44:51 +08:00
|
|
|
func main() {
|
2026-01-22 00:12:24 +08:00
|
|
|
gs.Provide(common.GetDataBaseClient)
|
|
|
|
|
gs.Provide(common.GetQuery)
|
|
|
|
|
gs.Provide(route.NewTestBoot).AsRunner()
|
|
|
|
|
fmt.Println("注入完成")
|
2026-01-21 19:40:21 +08:00
|
|
|
gs.Run()
|
2026-01-21 17:44:51 +08:00
|
|
|
}
|