日志列表错误
This commit is contained in:
parent
f9f652eb32
commit
30460ff8c5
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue