From 859ace71dfb4cbbd6d9e868565f017671044b563 Mon Sep 17 00:00:00 2001 From: zhengkunwang <31820853+zhengkunwang223@users.noreply.github.com> Date: Thu, 6 Jun 2024 22:15:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E9=99=90=E5=88=B6?= =?UTF-8?q?=E5=BA=94=E7=94=A8=E5=AE=89=E8=A3=85=E4=B9=8B=E5=90=8E=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E6=8C=89=E9=92=AE=E8=BF=98=E8=83=BD=E7=82=B9=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(#5331)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/dto/response/app.go | 1 + backend/app/service/app.go | 1 + 2 files changed, 2 insertions(+) diff --git a/backend/app/dto/response/app.go b/backend/app/dto/response/app.go index d320fbe6f..082e25881 100644 --- a/backend/app/dto/response/app.go +++ b/backend/app/dto/response/app.go @@ -40,6 +40,7 @@ type AppDto struct { Resource string `json:"resource"` Installed bool `json:"installed"` Versions []string `json:"versions"` + Limit int `json:"limit"` Tags []model.Tag `json:"tags"` } diff --git a/backend/app/service/app.go b/backend/app/service/app.go index 94f263bcf..a9e903332 100644 --- a/backend/app/service/app.go +++ b/backend/app/service/app.go @@ -104,6 +104,7 @@ func (a AppService) PageApp(req request.AppSearch) (interface{}, error) { ShortDescZh: ap.ShortDescZh, ShortDescEn: ap.ShortDescEn, Resource: ap.Resource, + Limit: ap.Limit, } appDTOs = append(appDTOs, appDTO) appTags, err := appTagRepo.GetByAppId(ap.ID)