日志列表错误

This commit is contained in:
陈俊宏 2024-12-04 18:39:41 +08:00
parent f9f652eb32
commit 30460ff8c5
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ import (
cmd_services "cron_admin/app/services/cmd_service" cmd_services "cron_admin/app/services/cmd_service"
"cron_admin/app/utils/helper" "cron_admin/app/utils/helper"
"cron_admin/app/utils/mapstructure" "cron_admin/app/utils/mapstructure"
"fmt"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"strconv" "strconv"
) )
@ -17,6 +18,7 @@ func CronFuncLogsList(c *gin.Context) {
request := controllers.GetRequest(c).(*backend.CronFuncLogsListRequest) request := controllers.GetRequest(c).(*backend.CronFuncLogsListRequest)
count, funcLogsList, err := services.CronFuncLogsList(request, request.Page, request.Limit) count, funcLogsList, err := services.CronFuncLogsList(request, request.Page, request.Limit)
if err != nil { if err != nil {
fmt.Printf("列表获取失败,失败原因:%s", err.Error())
controllers.HandRes(c, nil, errorcode.ParamError) controllers.HandRes(c, nil, errorcode.ParamError)
} else { } else {
var funcLogsListResponse []backend.CronFuncLogsListResponse var funcLogsListResponse []backend.CronFuncLogsListResponse