mirror of
https://github.com/dataease/dataease.git
synced 2026-05-20 02:58:10 +08:00
fix(工作台): 修复模板市场按照模板类型筛选无效问题
This commit is contained in:
committed by
fit2cloud-chenyw
parent
ffa4cd0512
commit
8b65cf2bf2
@@ -1,14 +1,11 @@
|
||||
package io.dataease.api.template;
|
||||
|
||||
import io.dataease.api.template.request.TemplateMarketSearchRequest;
|
||||
import io.dataease.api.template.response.MarketBaseResponse;
|
||||
import io.dataease.api.template.response.MarketPreviewBaseResponse;
|
||||
import io.dataease.api.template.vo.MarketMetaDataVO;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ public class TemplateMarketDTO implements Comparable<TemplateMarketDTO> {
|
||||
}
|
||||
}
|
||||
|
||||
public TemplateMarketDTO(String id, String title, String themeRepo, String templateUrl, String categoryName, String templateType, Long recentUseTime, String suggest) {
|
||||
public TemplateMarketDTO(String id, String title, String themeRepo, String templateUrl, String categoryName, String templateType, Long recentUseTime, String suggest, String classify) {
|
||||
this.id = id;
|
||||
this.title = title;
|
||||
this.metas = new MarketMetasVO(templateUrl);
|
||||
@@ -70,6 +70,9 @@ public class TemplateMarketDTO implements Comparable<TemplateMarketDTO> {
|
||||
this.templateType = templateType;
|
||||
this.categories = new ArrayList<>(Arrays.asList(new MarketCategoryVO(categoryName))) ;
|
||||
this.categoryNames = new ArrayList<>(Arrays.asList(categoryName)) ;
|
||||
if("DATA".equals(classify)){
|
||||
this.classify = "app";
|
||||
}
|
||||
if (recentUseTime != null) {
|
||||
this.recentUseTime = recentUseTime;
|
||||
String name = Translator.get("i18n_template_recent");
|
||||
|
||||
@@ -22,6 +22,8 @@ public class MarketApplicationSpecVO {
|
||||
|
||||
private String label;
|
||||
|
||||
private String templateClassification;
|
||||
|
||||
private String readmeName;
|
||||
|
||||
// 是否推荐
|
||||
|
||||
Reference in New Issue
Block a user