package com.matrix.system.shopXcx.bean; import com.matrix.core.pojo.EntityDTO; import com.matrix.core.anotations.Extend; import com.matrix.system.constance.Dictionary; /** * @description 小程序页面 * @author yourName * @date 2020-04-03 14:56 */ public class ShopPage extends EntityDTO{ @Extend private static final long serialVersionUID = 1L; /** * 1,广告页 */ public static final int PAGE_TYPE_AD=1; /** * 2导航页 */ public static final int PAGE_TYPE_TAB=2; /** * 3,功能页 */ public static final int PAGE_TYPE_FUNCTION=3; /** * 主键 */ private Long id; /** * 页面名称 */ private String name; /** * 页面路径 */ private String path; /** * 默认参数 */ private String param; /** * 页面code */ private String code; /** * 页面类型 1,广告页,2导航页,3,功能页 */ private Integer pageType; /** * 排序 */ private Integer sequence; /** * 公司id */ private Long companyId; /** * 备注 */ private String remark; /** * 扩展 */ private String info1; /** * 扩展 */ private String info2; /** * 扩展 */ private String info3; /** * 扩展 */ private String info4; public Long getId() { return id; } public ShopPage setId(Long id) { this.id=id; return this; } public String getName() { return name; } public ShopPage setName(String name) { this.name=name; return this; } public String getPath() { return path; } public ShopPage setPath(String path) { this.path=path; return this; } public String getParam() { return param; } public ShopPage setParam(String param) { this.param=param; return this; } public String getCode() { return code; } public ShopPage setCode(String code) { this.code=code; return this; } public Integer getPageType() { return pageType; } public ShopPage setPageType(Integer pageType) { this.pageType=pageType; //设置dic if (PAGE_TYPE_AD==this.pageType) { getDicMap().put("pageType", "广告页"); } else if (PAGE_TYPE_TAB==this.pageType) { getDicMap().put("pageType", "导航页"); } else if (PAGE_TYPE_FUNCTION==this.pageType) { getDicMap().put("pageType", "功能页"); } return this; } public Integer getSequence() { return sequence; } public ShopPage setSequence(Integer sequence) { this.sequence=sequence; return this; } public Long getCompanyId() { return companyId; } public ShopPage setCompanyId(Long companyId) { this.companyId=companyId; return this; } public String getRemark() { return remark; } public ShopPage setRemark(String remark) { this.remark=remark; return this; } public String getInfo1() { return info1; } public ShopPage setInfo1(String info1) { this.info1=info1; return this; } public String getInfo2() { return info2; } public ShopPage setInfo2(String info2) { this.info2=info2; return this; } public String getInfo3() { return info3; } public ShopPage setInfo3(String info3) { this.info3=info3; return this; } public String getInfo4() { return info4; } public ShopPage setInfo4(String info4) { this.info4=info4; return this; } }