Quellcode durchsuchen

[公众号链接][新增]:公众号链接详情页添加

release_toaliyun_real
Stormeye Wu vor 7 Jahren
Ursprung
Commit
d089cdb200
4 geänderte Dateien mit 55 neuen und 6 gelöschten Zeilen
  1. +13
    -1
      mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java
  2. +19
    -4
      mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java
  3. +11
    -1
      mallinkService/src/main/java/com/iformall/domain/po/WxGame.java
  4. +12
    -0
      mallinkService/src/main/java/com/iformall/domain/po/WxTopic.java

+ 13
- 1
mallinkService/src/main/java/com/iformall/domain/po/WxCampaign.java Datei anzeigen

@@ -107,6 +107,10 @@ public class WxCampaign implements Serializable {
@io.swagger.annotations.ApiModelProperty(value="富文本",name="html") @io.swagger.annotations.ApiModelProperty(value="富文本",name="html")
private String html; private String html;


@Transient
@io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath")
protected String weappPath;

public String getTenantId() { public String getTenantId() {
return tenantId; return tenantId;
} }
@@ -218,7 +222,15 @@ public class WxCampaign implements Serializable {
this.html = html; this.html = html;
} }


public static enum Field
public String getWeappPath() {
return "pages/index/index?type=bd&bt="+type+"&id="+id;
}

public void setWeappPath(String weappPath) {
this.weappPath = weappPath;
}

public static enum Field
{ {
Id_ASC("`id` ASC"),Id_DESC("`id` DESC") Id_ASC("`id` ASC"),Id_DESC("`id` DESC")
,TenantId_ASC("`tenant_id` ASC"),TenantId_DESC("`tenant_id` DESC") ,TenantId_ASC("`tenant_id` ASC"),TenantId_DESC("`tenant_id` DESC")


+ 19
- 4
mallinkService/src/main/java/com/iformall/domain/po/WxCouponChannel.java Datei anzeigen

@@ -1,5 +1,7 @@
package com.iformall.domain.po; package com.iformall.domain.po;


import com.iformall.enums.EnumCouponType;

import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table; import javax.persistence.Table;
import javax.persistence.Transient; import javax.persistence.Transient;
@@ -90,16 +92,17 @@ public class WxCouponChannel implements Serializable {
/*0:上架 1:下架**/ /*0:上架 1:下架**/
@io.swagger.annotations.ApiModelProperty(value="0:上架 1:下架",name="status") @io.swagger.annotations.ApiModelProperty(value="0:上架 1:下架",name="status")
private Integer status; private Integer status;
/*创建时间**/
@io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate") @io.swagger.annotations.ApiModelProperty(value="创建时间",name="createDate")
private Date createDate; private Date createDate;
/*更新时间**/
@io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate") @io.swagger.annotations.ApiModelProperty(value="更新时间",name="updateDate")
private Date updateDate; private Date updateDate;
/*更新时间**/
@io.swagger.annotations.ApiModelProperty(value="子频道ID",name="subTargetId") @io.swagger.annotations.ApiModelProperty(value="子频道ID",name="subTargetId")
private Long subTargetId; private Long subTargetId;


@Transient
@io.swagger.annotations.ApiModelProperty(value = "小程序路径", name = "weaAppPath")
private String weaAppPath;



public String getTenantId() { public String getTenantId() {
return tenantId; return tenantId;
@@ -209,7 +212,19 @@ public class WxCouponChannel implements Serializable {
this.supportTransfer = supportTransfer; this.supportTransfer = supportTransfer;
} }


public static enum Field
public String getWeaAppPath() {
if(!type.equals(EnumCouponType.COUPON_GROUP.getCode())) {
return "pages/index/index?type=sd&couponChannelId=" + id;
} else {
return "pages/index/index?type=cd&couponChannelId=" + id;
}
}

public void setWeaAppPath(String weaAppPath) {
this.weaAppPath = weaAppPath;
}

public static enum Field
{ {
Id_ASC("`id` ASC"),Id_DESC("`id` DESC") Id_ASC("`id` ASC"),Id_DESC("`id` DESC")
,TenantId_ASC("`tenant_id` ASC"),TenantId_DESC("`tenant_id` DESC") ,TenantId_ASC("`tenant_id` ASC"),TenantId_DESC("`tenant_id` DESC")


+ 11
- 1
mallinkService/src/main/java/com/iformall/domain/po/WxGame.java Datei anzeigen

@@ -96,7 +96,9 @@ public class WxGame implements Serializable {
@io.swagger.annotations.ApiModelProperty(value="游戏类型(1:卡牌),目前无用",name="type") @io.swagger.annotations.ApiModelProperty(value="游戏类型(1:卡牌),目前无用",name="type")
private Integer type; private Integer type;



@Transient
@io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath")
private String weappPath;




public Long getId() { public Long getId() {
@@ -247,6 +249,14 @@ public class WxGame implements Serializable {
this.type = type; this.type = type;
} }


public String getWeappPath() {
return "pages/index/index?type=gm&id="+id;
}

public void setWeappPath(String weappPath) {
this.weappPath = weappPath;
}

public void setGameTemplate(WxGameTemplate gameTemplate) { public void setGameTemplate(WxGameTemplate gameTemplate) {
if (gameTemplate != null) { if (gameTemplate != null) {
this.imgUrl = gameTemplate.getImgUrl(); this.imgUrl = gameTemplate.getImgUrl();


+ 12
- 0
mallinkService/src/main/java/com/iformall/domain/po/WxTopic.java Datei anzeigen

@@ -79,6 +79,10 @@ public class WxTopic implements Serializable {
this.couponChannelId = couponChannelId; this.couponChannelId = couponChannelId;
} }


@Transient
@io.swagger.annotations.ApiModelProperty(value="小程序路径",name="weappPath")
private String weappPath;

public Integer getIsOnline() { public Integer getIsOnline() {
return isOnline; return isOnline;
} }
@@ -230,4 +234,12 @@ public class WxTopic implements Serializable {
public void setUpdatetime(Date updatetime) { public void setUpdatetime(Date updatetime) {
this.updatetime = updatetime; this.updatetime = updatetime;
} }

public String getWeappPath() {
return "pages/index/index?type=td&id="+id;
}

public void setWeappPath(String weappPath) {
this.weappPath = weappPath;
}
} }

Laden…
Abbrechen
Speichern