Commit 6ef53cc8 by 王祖波

生成素材外链跳转地址

parent b159dd9f
......@@ -6,8 +6,10 @@ import com.gic.commons.util.EntityUtil;
import com.gic.commons.webapi.reponse.RestResponse;
import com.gic.content.api.dto.material.ContentGoodsDTO;
import com.gic.content.api.dto.material.ContentMaterialLandingPageInfoDTO;
import com.gic.content.api.dto.material.MaterialLinkDTO;
import com.gic.content.api.dto.material.ProductInfoDTO;
import com.gic.content.api.qdto.material.ContentMaterialLandingPageQDTO;
import com.gic.content.api.qdto.share.MaterialLinkShareQDTO;
import com.gic.content.api.service.ContentMaterialShareApiService;
import com.gic.haoban.manage.api.dto.content.log.ClerkShareMaterialLogDTO;
import com.gic.haoban.manage.api.enums.content.ShareBizType;
......@@ -119,4 +121,24 @@ public class ClerkMaterialShareController {
}
return RestResponse.successResult(materialLandingPageVO);
}
/**
* 生成素材外链跳转地址
* @param materialBaseQO
* @return
*/
@RequestMapping(path = "/clerk/share-material-link", method = RequestMethod.POST)
public RestResponse<MaterialLinkDTO> clerkShareMaterialLink(@RequestBody ContentMaterialBaseQO materialBaseQO) {
MaterialLinkShareQDTO linkShareQDTO = new MaterialLinkShareQDTO();
linkShareQDTO.setClerkId(materialBaseQO.getClerkId());
linkShareQDTO.setStoreId(materialBaseQO.getStoreId());
linkShareQDTO.setContentMaterialId(materialBaseQO.getContentMaterialId());
linkShareQDTO.setEnterpriseId(materialBaseQO.getEnterpriseId());
ServiceResponse<MaterialLinkDTO> response = contentMaterialShareApiService.generateLink(linkShareQDTO);
if (!response.isSuccess()) {
return RestResponse.failure(response.getCode(), response.getMessage());
}
return RestResponse.successResult(response.getResult());
}
}
......@@ -33,6 +33,11 @@ public class ContentMaterialInfoVO implements Serializable {
private String materialTitle;
/**
* 素材子标题
*/
private String materialSubTitle;
/**
* 素材内容
*/
private String materialContent;
......@@ -115,6 +120,12 @@ public class ContentMaterialInfoVO implements Serializable {
*/
private String materialFileInfo;
/**
* 素材外链
*/
private String materialLink;
/**
* 分享次数
*/
......@@ -190,6 +201,14 @@ public class ContentMaterialInfoVO implements Serializable {
this.materialTitle = materialTitle;
}
public String getMaterialSubTitle() {
return materialSubTitle;
}
public void setMaterialSubTitle(String materialSubTitle) {
this.materialSubTitle = materialSubTitle;
}
public String getMaterialContent() {
return materialContent;
}
......@@ -390,6 +409,14 @@ public class ContentMaterialInfoVO implements Serializable {
this.materialVideoFirstImageInfo = materialVideoFirstImageInfo;
}
public String getMaterialLink() {
return materialLink;
}
public void setMaterialLink(String materialLink) {
this.materialLink = materialLink;
}
public Long getLikeCount() {
return likeCount;
}
......
......@@ -23,6 +23,10 @@ public class ContentMaterialVO extends ContentMaterialConvsVO{
*/
private String materialTitle;
/**
* 素材子标题
*/
private String materialSubTitle;
/**
* 素材类型1图文4视频
*/
private Integer materialType;
......@@ -140,6 +144,14 @@ public class ContentMaterialVO extends ContentMaterialConvsVO{
this.materialTitle = materialTitle;
}
public String getMaterialSubTitle() {
return materialSubTitle;
}
public void setMaterialSubTitle(String materialSubTitle) {
this.materialSubTitle = materialSubTitle;
}
public Integer getMaterialType() {
return materialType;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment