diff --git a/controller/strategy/iml.go b/controller/strategy/iml.go index 5a70bcae..263fde28 100644 --- a/controller/strategy/iml.go +++ b/controller/strategy/iml.go @@ -231,7 +231,7 @@ func (i *imlStrategyController) GetStrategyLogs(ctx *gin.Context, keyword string if err != nil { return nil, 0, fmt.Errorf("start time error: %s", err) } - e, err := genTime(start, now) + e, err := genTime(end, now) if err != nil { return nil, 0, fmt.Errorf("end time error: %s", err) diff --git a/plugins/core/strategy.go b/plugins/core/strategy.go index 833c5f44..e41c77a4 100644 --- a/plugins/core/strategy.go +++ b/plugins/core/strategy.go @@ -33,7 +33,7 @@ func (p *plugin) strategyApis() []pm3.Api { pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/strategy/service/filter-remote/:name", []string{"context", "query:service", "rest:name"}, []string{"titles", "list", "total", "key", "value"}, p.strategyController.FilterServiceRemote), pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/strategy/global/:driver/to-publishs", []string{"context", "rest:driver"}, []string{"strategies", "source", "version_name", "is_publish"}, p.strategyController.ToPublish), - pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/strategy/global/:driver/logs", []string{"context", "query:keyword", "query:strategy", "query:begin", "query:end", "query:page", "query:page_size"}, []string{"logs", "total"}, p.strategyController.GetStrategyLogs), + pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/strategy/global/:driver/logs", []string{"context", "query:keyword", "query:strategy", "query:begin", "query:end", "query:page_size", "query:page"}, []string{"logs", "total"}, p.strategyController.GetStrategyLogs), pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/strategy/global/:driver/log", []string{"context", "query:log"}, []string{"log"}, p.strategyController.LogInfo), } }