fix: 解决限制应用安装之后安装按钮还能点的问题 (#5331)

This commit is contained in:
zhengkunwang 2024-06-06 22:15:38 +08:00 committed by GitHub
parent a7cf69e5a2
commit 859ace71df
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -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"`
}

View File

@ -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)