From f537abe9f3646c739beaf15076246a2f71a347e9 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期四, 20 二月 2025 16:57:55 +0800
Subject: [PATCH] IOS广告增加区域屏蔽

---
 src/main/java/com/yeshi/buwan/domain/HomeType.java |  436 ++++++++++++++++++++++++++++++++++++------------------
 1 files changed, 288 insertions(+), 148 deletions(-)

diff --git a/src/main/java/com/yeshi/buwan/domain/HomeType.java b/src/main/java/com/yeshi/buwan/domain/HomeType.java
index d1a502a..9d35ab2 100644
--- a/src/main/java/com/yeshi/buwan/domain/HomeType.java
+++ b/src/main/java/com/yeshi/buwan/domain/HomeType.java
@@ -1,202 +1,342 @@
 package com.yeshi.buwan.domain;
 
-import java.io.Serializable;
-import java.util.List;
+import com.google.gson.annotations.Expose;
+import com.yeshi.buwan.domain.jump.JumpDetail;
+import com.yeshi.buwan.domain.system.SystemInfo;
 
 import javax.persistence.Entity;
 import javax.persistence.ManyToOne;
+import javax.persistence.Transient;
 import javax.validation.constraints.Pattern;
-
-import com.google.gson.annotations.Expose;
+import java.io.Serializable;
+import java.math.BigDecimal;
+import java.util.List;
 
 /**
  * 棣栭〉鐨勫垎绫�
- * 
+ *
  * @author Administrator
- * 
  */
 @Entity
-public class HomeType implements Serializable{
-	@Expose
-	private String id;
-	@Expose
-	private String name;
-	@Expose
-	private String createtime;
-	private String beizhu;
-	@Pattern(regexp="[0-9]+",message="璇疯緭鍏ユ暟瀛�")
-	private String orderby;
-	private AdminInfo admin;
-	@Expose
-	private List<HomeVideo> homeVideoList;
-	@Expose
-	private List<VideoInfo> videoList;// 鍋氳�佺増鏈吋瀹�
-	@Expose
-	private String activity;
-	@Expose
-	private String params;
-	@Expose
-	private boolean hasMore;
-	@Expose
-	private String iosControl;
-	@Expose
-	private String icon;
-	
-	private VideoType videoType; //20170914
-	
-	public String getIcon() {
-		return icon;
-	}
+public class HomeType implements Serializable {
+    @Expose
+    private String id;
+    @Expose
+    private String name;
+    @Expose
+    private String createtime;
+    private String beizhu;
+    @Pattern(regexp = "[0-9]+", message = "璇疯緭鍏ユ暟瀛�")
+    private String orderby;
+    private AdminInfo admin;
+    @Expose
+    private List<HomeVideo> homeVideoList;
+    @Expose
+    private List<VideoInfo> videoList;// 鍋氳�佺増鏈吋瀹�
+    @Expose
+    private String activity;
+    @Expose
+    private String params;
+    @Expose
+    private boolean hasMore;
 
-	public VideoType getVideoType() {
-		return videoType;
-	}
+    //鏄惁闇�瑕佸~鍏呭箍鍛�
+    @Expose
+    private boolean needAd;
 
-	public void setVideoType(VideoType videoType) {
-		this.videoType = videoType;
-	}
+    @Expose
+    private String iosControl;
+    @Expose
+    private String icon;
 
-	public void setIcon(String icon) {
-		this.icon = icon;
-	}
+    @Expose
+    private int columns;
 
-	@Expose
-	private List<HomeTypeItem> itemTypeList;//瀛愮被鍨�
+    @Expose
+    private List<HomeTypeItem> itemTypeList;//瀛愮被鍨�
+
+    @Expose
+    private int number;// 鏄剧ず澶氬皯涓�
+
+    //鍒锋柊鐨勪綅缃�  0-鏃犲埛鏂�  1-鍙充笂瑙�  2-涓嬫柟
+    @Expose
+    private int refreshPosition;
+    @Expose
+    private String moreTag;
 
 
-	public List<HomeTypeItem> getItemTypeList() {
-		return itemTypeList;
-	}
+    private boolean bigPicture;
 
-	public void setItemTypeList(List<HomeTypeItem> itemTypeList) {
-		this.itemTypeList = itemTypeList;
-	}
+    //鏁版嵁鎬绘暟
+    @Expose
+    private int count;
 
-	public String getIosControl() {
-		return iosControl;
-	}
 
-	public void setIosControl(String iosControl) {
-		this.iosControl = iosControl;
-	}
+    public boolean isBigPicture() {
+        return bigPicture;
+    }
 
-	@Expose
-	private int number;// 鏄剧ず澶氬皯涓�
+    public void setBigPicture(boolean bigPicture) {
+        this.bigPicture = bigPicture;
+    }
 
-	public int getNumber() {
-		return number;
-	}
+    public int getCount() {
+        return count;
+    }
 
-	public void setNumber(int number) {
-		this.number = number;
-	}
+    public void setCount(int count) {
+        this.count = count;
+    }
 
-	public String getActivity() {
-		return activity;
-	}
+    public int getRefreshPosition() {
+        return refreshPosition;
+    }
 
-	public void setActivity(String activity) {
-		this.activity = activity;
-	}
+    public void setRefreshPosition(int refreshPosition) {
+        this.refreshPosition = refreshPosition;
+    }
 
-	public String getParams() {
-		return params;
-	}
+    public String getMoreTag() {
+        return moreTag;
+    }
 
-	public void setParams(String params) {
-		this.params = params;
-	}
+    public void setMoreTag(String moreTag) {
+        this.moreTag = moreTag;
+    }
 
-	public boolean isHasMore() {
-		return hasMore;
-	}
+    @Expose
+    @Transient
+    private HomeTypeAd ad;
 
-	public void setHasMore(boolean hasMore) {
-		this.hasMore = hasMore;
-	}
+    private SystemInfo system;
 
-	public List<VideoInfo> getVideoList() {
-		return videoList;
-	}
+    private VideoType videoType; //20170914
 
-	public void setVideoList(List<VideoInfo> videoList) {
-		this.videoList = videoList;
-	}
+    //涓撻鍏抽敭瀛�
+    private String specialDataKey;
 
-	public List<HomeVideo> getHomeVideoList() {
-		return homeVideoList;
-	}
+    public HomeTypeAd getAd() {
+        return ad;
+    }
 
-	public void setHomeVideoList(List<HomeVideo> homeVideoList) {
-		this.homeVideoList = homeVideoList;
-	}
+    public void setAd(HomeTypeAd ad) {
+        this.ad = ad;
+    }
 
-	@Expose
-	private int columns;
+    public boolean isNeedAd() {
+        return needAd;
+    }
 
-	public int getColumns() {
-		return columns;
-	}
+    public void setNeedAd(boolean needAd) {
+        this.needAd = needAd;
+    }
 
-	public void setColumns(int columns) {
-		this.columns = columns;
-	}
 
-	public HomeType() {
+    public String getIcon() {
+        return icon;
+    }
 
-	}
+    public VideoType getVideoType() {
+        return videoType;
+    }
 
-	public HomeType(String id) {
-		this.id = id;
-	}
+    public void setVideoType(VideoType videoType) {
+        this.videoType = videoType;
+    }
 
-	public String getId() {
-		return id;
-	}
+    public void setIcon(String icon) {
+        this.icon = icon;
+    }
 
-	public void setId(String id) {
-		this.id = id;
-	}
 
-	public String getName() {
-		return name;
-	}
+    public List<HomeTypeItem> getItemTypeList() {
+        return itemTypeList;
+    }
 
-	public void setName(String name) {
-		this.name = name;
-	}
+    public void setItemTypeList(List<HomeTypeItem> itemTypeList) {
+        this.itemTypeList = itemTypeList;
+    }
 
-	public String getCreatetime() {
-		return createtime;
-	}
+    public String getIosControl() {
+        return iosControl;
+    }
 
-	public void setCreatetime(String createtime) {
-		this.createtime = createtime;
-	}
+    public void setIosControl(String iosControl) {
+        this.iosControl = iosControl;
+    }
 
-	public String getBeizhu() {
-		return beizhu;
-	}
 
-	public void setBeizhu(String beizhu) {
-		this.beizhu = beizhu;
-	}
+    public int getNumber() {
+        return number;
+    }
 
-	public String getOrderby() {
-		return orderby;
-	}
+    public void setNumber(int number) {
+        this.number = number;
+    }
 
-	public void setOrderby(String orderby) {
-		this.orderby = orderby;
-	}
+    public String getActivity() {
+        return activity;
+    }
 
-	@ManyToOne
-	public AdminInfo getAdmin() {
-		return admin;
-	}
+    public void setActivity(String activity) {
+        this.activity = activity;
+    }
 
-	public void setAdmin(AdminInfo admin) {
-		this.admin = admin;
-	}
+    public String getParams() {
+        return params;
+    }
 
+    public void setParams(String params) {
+        this.params = params;
+    }
+
+    public boolean isHasMore() {
+        return hasMore;
+    }
+
+    public void setHasMore(boolean hasMore) {
+        this.hasMore = hasMore;
+    }
+
+    public List<VideoInfo> getVideoList() {
+        return videoList;
+    }
+
+    public void setVideoList(List<VideoInfo> videoList) {
+        this.videoList = videoList;
+    }
+
+    public List<HomeVideo> getHomeVideoList() {
+        return homeVideoList;
+    }
+
+    public void setHomeVideoList(List<HomeVideo> homeVideoList) {
+        this.homeVideoList = homeVideoList;
+    }
+
+
+    public int getColumns() {
+        return columns;
+    }
+
+    public void setColumns(int columns) {
+        this.columns = columns;
+    }
+
+    public HomeType() {
+
+    }
+
+    public HomeType(String id) {
+        this.id = id;
+    }
+
+    public String getId() {
+        return id;
+    }
+
+    public void setId(String id) {
+        this.id = id;
+    }
+
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    public String getCreatetime() {
+        return createtime;
+    }
+
+    public void setCreatetime(String createtime) {
+        this.createtime = createtime;
+    }
+
+    public String getBeizhu() {
+        return beizhu;
+    }
+
+    public void setBeizhu(String beizhu) {
+        this.beizhu = beizhu;
+    }
+
+    public String getOrderby() {
+        return orderby;
+    }
+
+    public void setOrderby(String orderby) {
+        this.orderby = orderby;
+    }
+
+    @ManyToOne
+    public AdminInfo getAdmin() {
+        return admin;
+    }
+
+    public void setAdmin(AdminInfo admin) {
+        this.admin = admin;
+    }
+
+    public SystemInfo getSystem() {
+        return system;
+    }
+
+    public void setSystem(SystemInfo system) {
+        this.system = system;
+    }
+
+
+    public String getSpecialDataKey() {
+        return specialDataKey;
+    }
+
+    public void setSpecialDataKey(String specialDataKey) {
+        this.specialDataKey = specialDataKey;
+    }
+
+    public static class HomeTypeAd {
+        @Expose
+        private String picture;
+        @Expose
+        private BigDecimal pictureRate;
+        @Expose
+        private JumpDetail jumpDetail;
+        @Expose
+        private String params;
+
+        public String getPicture() {
+            return picture;
+        }
+
+        public void setPicture(String picture) {
+            this.picture = picture;
+        }
+
+        public BigDecimal getPictureRate() {
+            return pictureRate;
+        }
+
+        public void setPictureRate(BigDecimal pictureRate) {
+            this.pictureRate = pictureRate;
+        }
+
+        public JumpDetail getJumpDetail() {
+            return jumpDetail;
+        }
+
+        public void setJumpDetail(JumpDetail jumpDetail) {
+            this.jumpDetail = jumpDetail;
+        }
+
+        public String getParams() {
+            return params;
+        }
+
+        public void setParams(String params) {
+            this.params = params;
+        }
+    }
 }

--
Gitblit v1.8.0