add swagger

This commit is contained in:
yanghao05
2023-06-09 14:32:21 +08:00
parent 37bf456102
commit 3f27dee0b2
23 changed files with 245 additions and 89 deletions

View File

@@ -3,7 +3,6 @@ package gomicro
import (
"github.com/rogeecn/atom/container"
"github.com/rogeecn/atom/providers/http"
"github.com/rogeecn/atom/providers/log"
"github.com/rogeecn/atom/providers/micro_service"
"github.com/rogeecn/atom/utils/opt"
"go-micro.dev/v4"
@@ -23,7 +22,7 @@ func Provide(opts ...opt.Option) error {
o := opt.New(opts...)
var config micro_service.Config
if err := o.UnmarshalConfig(&config); err != nil {
log.Fatal(err)
return err
}
return container.Container.Provide(func() (micro_service.Service, error) {