add backend tpl
This commit is contained in:
26
backend/providers/swagger/config.go
Normal file
26
backend/providers/swagger/config.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package swagger
|
||||
|
||||
import (
|
||||
"git.ipao.vip/rogeecn/atom/container"
|
||||
"git.ipao.vip/rogeecn/atom/utils/opt"
|
||||
)
|
||||
|
||||
const DefaultPrefix = "Swagger"
|
||||
|
||||
type Config struct {
|
||||
BaseRoute string
|
||||
Version string
|
||||
Host string
|
||||
BasePath string
|
||||
Title string
|
||||
Description string
|
||||
}
|
||||
|
||||
func DefaultProvider() container.ProviderContainer {
|
||||
return container.ProviderContainer{
|
||||
Provider: Provide,
|
||||
Options: []opt.Option{
|
||||
opt.Prefix(DefaultPrefix),
|
||||
},
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user