Browse Source

add:app按钮管理

liujunchi 2 years ago
parent
commit
c60214919b

+ 7 - 0
cooleshow-cms/src/main/java/com/yonge/cooleshow/cms/controller/NewsController.java

@@ -157,6 +157,13 @@ public class NewsController extends BaseController {
 		params = new HashMap<>();
 		MapUtil.populateMap(params, queryInfo);
 		appHomeDto.setFlashPage(sysNewsInformationService.selectPage(queryInfo).getRows());
+
+		// 按钮
+		queryInfo.setType(35);
+		queryInfo.setRows(999);
+		params = new HashMap<>();
+		MapUtil.populateMap(params, queryInfo);
+		appHomeDto.setFlashPage(sysNewsInformationService.selectPage(queryInfo).getRows());
 		return succeed(appHomeDto);
 	}
 }

+ 1 - 1
cooleshow-cms/src/main/java/com/yonge/cooleshow/cms/controller/queryinfo/NewsInformationQueryInfo.java

@@ -13,7 +13,7 @@ import javax.validation.constraints.NotNull;
 
 public class NewsInformationQueryInfo extends QueryInfo {
 
-	@ApiModelProperty(value = "类型,1热门资讯,2开屏广告,3闪页管理,4轮播图管理", required = true)
+	@ApiModelProperty(value = "类型,1热门资讯,2开屏广告,3闪页管理,4轮播图管理 5按钮管理", required = true)
 	@NotNull(message = "类型不能为空")
 	private Integer type;
 

+ 2 - 1
cooleshow-cms/src/main/java/com/yonge/cooleshow/cms/dal/entity/SysNewsInformation.java

@@ -36,7 +36,7 @@ public class SysNewsInformation {
 	private String videoCoverImage;
 
 	/** 类型 */
-	@ApiModelProperty(value = "类型,1热门资讯,2开屏广告,3闪页管理,4轮播图管理", required = true)
+	@ApiModelProperty(value = "类型,1热门资讯,2开屏广告,3闪页管理,4轮播图管理 5app按钮管理", required = true)
 	@NotNull(message = "类型不能为空")
 	private Integer type;
 	
@@ -83,6 +83,7 @@ public class SysNewsInformation {
 
 	private Boolean delFlag= false;
 
+	@ApiModelProperty("版本号")
 	private String attribute1;
 	
 	private String attribute2;

+ 11 - 0
cooleshow-cms/src/main/java/com/yonge/cooleshow/cms/dto/AppHomeDto.java

@@ -24,6 +24,9 @@ public class AppHomeDto {
     @ApiModelProperty("闪页")
     private List<SysNewsInformationDto> flashPage;
 
+    @ApiModelProperty("app按钮")
+    private List<SysNewsInformationDto> appMenu;
+
     public List<SysNewsInformationDto> getInformation() {
         return information;
     }
@@ -47,4 +50,12 @@ public class AppHomeDto {
     public void setFlashPage(List<SysNewsInformationDto> flashPage) {
         this.flashPage = flashPage;
     }
+
+    public List<SysNewsInformationDto> getAppMenu() {
+        return appMenu;
+    }
+
+    public void setAppMenu(List<SysNewsInformationDto> appMenu) {
+        this.appMenu = appMenu;
+    }
 }