feat: update page list show

This commit is contained in:
yanghao05
2025-04-08 15:35:58 +08:00
parent 7d28dff65b
commit cf8bb5f192
13 changed files with 280 additions and 102 deletions

View File

@@ -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)