feat: update page list show
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
||||
"quyun/app/errorx"
|
||||
appHttp "quyun/app/http"
|
||||
"quyun/app/jobs"
|
||||
"quyun/app/models"
|
||||
"quyun/app/service"
|
||||
_ "quyun/docs"
|
||||
"quyun/providers/ali"
|
||||
@@ -47,6 +48,7 @@ func Command() atom.Option {
|
||||
defaultProviders().
|
||||
With(
|
||||
jobs.Provide,
|
||||
models.Provide,
|
||||
).
|
||||
WithProviders(
|
||||
appHttp.Providers(),
|
||||
@@ -68,7 +70,7 @@ type Service struct {
|
||||
|
||||
func Serve(cmd *cobra.Command, args []string) error {
|
||||
return container.Container.Invoke(func(ctx context.Context, svc Service) error {
|
||||
log.SetFormatter(&log.JSONFormatter{})
|
||||
log.SetFormatter(&log.TextFormatter{})
|
||||
|
||||
if svc.App.Mode == app.AppModeDevelopment {
|
||||
log.SetLevel(log.DebugLevel)
|
||||
|
||||
Reference in New Issue
Block a user