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)