Commit 8c8b7c95 by 王祖波

好办内容素材名称

parent d5058d3a
......@@ -10,6 +10,11 @@ public class ChatContentDTO implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 标题
*/
private String title;
/**
* 封面url
*/
private String img;
......@@ -35,6 +40,14 @@ public class ChatContentDTO implements Serializable {
*/
private Integer urlChangeFlag;
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public String getImg() {
return img;
}
......
......@@ -316,6 +316,7 @@ public class GroupChatPlanController {
List<ChatContentDTO> contentDTOList = JSONArray.parseArray(content, ChatContentDTO.class);
materials = contentDTOList.stream().map(x -> {
MaterialDTO materialDTO = new MaterialDTO();
materialDTO.setMaterialTitle(x.getTitle());
materialDTO.setMaterialType(x.getType());
materialDTO.setMaterialContent(x.getContent());
materialDTO.setImgUrl(x.getImg());
......
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