add default provider

This commit is contained in:
yanghao05
2023-05-06 11:26:21 +08:00
parent 5362691ad5
commit 3a9a1a6eeb
12 changed files with 124 additions and 0 deletions

View File

@@ -12,6 +12,15 @@ import (
"github.com/gin-gonic/gin"
)
func DefaultProvider() container.ProviderContainer {
return container.ProviderContainer{
Provider: Provide,
Options: []opt.Option{
opt.Prefix(http.DefaultPrefix),
},
}
}
type Service struct {
conf *http.Config
Engine *gin.Engine