代码拉取完成,页面将自动刷新
// @title Web模块API
// @version 1.0
// @description This is a sample server celler server.
// @termsOfService http://swagger.io/terms/
// @contact.name API Support
// @contact.url http://www.swagger.io/support
// @contact.email sage12345678@qq.com
// @license.name Apache 2.0
// @license.url http://www.apache.org/licenses/LICENSE-2.0.html
// @host localhost:8080
// @BasePath /
// @schemes http https
// @produce json,html
// @securityDefinitions.basic BasicAuth
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
// @description Api-Token, Header: Authorization
// @externalDocs.description OpenAPI
// @externalDocs.url https://swagger.io/resources/open-api/
package webapp
import (
"gitee.com/captials-team/ubdframe/src/apps"
"gitee.com/captials-team/ubdframe/src/common"
"gitee.com/captials-team/ubdframe/src/domain/configstc"
v1log "gitee.com/captials-team/ubdframe/src/pkg/logs"
"go.uber.org/dig"
)
type App struct {
*apps.App
di *dig.Container
Conf *configstc.WebAppConfig
ApiServer *ApiServer
}
func NewApp(di *dig.Container, conf *configstc.WebAppConfig, logger v1log.ILog) *App {
app := &App{
di: di,
Conf: conf,
App: apps.NewApp(di, "web_app"),
}
common.ErrPanic(di.Provide(NewApiServer))
common.ErrPanic(di.Invoke(func(api *ApiServer) {
app.WithApiServer(api)
app.ApiServer = api
}))
return app
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。