From e169d6f8f68b286c7e9475d3a19ed279e98d2d78 Mon Sep 17 00:00:00 2001 From: Pavel Tatarskiy Date: Wed, 4 Dec 2024 23:13:35 +0300 Subject: [PATCH] fix template --- handlers/resource/get.go | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/handlers/resource/get.go b/handlers/resource/get.go index b28e842..6a225ad 100644 --- a/handlers/resource/get.go +++ b/handlers/resource/get.go @@ -24,6 +24,7 @@ const ( type GetArgs struct { ID string + Query string Page uint PageSize uint PWD string @@ -68,10 +69,11 @@ func (s *Handler) getList(ctx context.Context, args *GetArgs) (l *ra.ListRespons } type GetData struct { - Args *GetArgs - Resource *ra.ResourceResponse - List *ra.ListResponse - Item *ra.ListItem + Args *GetArgs + Resource *ra.ResourceResponse + List *ra.ListResponse + Item *ra.ListItem + Instruction string } func (s *Handler) get(c *gin.Context) {