图片套版生成模块

This commit is contained in:
cuibaocheng 2021-06-01 12:39:26 +08:00
parent 5e5e95435c
commit 77e5d1f08b
2 changed files with 8 additions and 8 deletions

View File

@ -10,7 +10,7 @@ public interface MaterialDataService {
* @param dataVO 素材对象 * @param dataVO 素材对象
* @return * @return
*/ */
public void save(MaterialDataVO dataVO); public void save(String token, MaterialDataVO dataVO);
/** /**
* 查询素材包素材 * 查询素材包素材

View File

@ -44,7 +44,7 @@ public class MaterialDataServiceImpl implements MaterialDataService {
private IMaterialLinkService materialLinkService; private IMaterialLinkService materialLinkService;
@Override @Override
public void save(MaterialDataVO dataVO) { public void save(String token, MaterialDataVO dataVO) {
List<MaterialTextVO> textVOList = dataVO.getText(); List<MaterialTextVO> textVOList = dataVO.getText();
List<MaterialPhotoVO> photoVOList = dataVO.getPhoto(); List<MaterialPhotoVO> photoVOList = dataVO.getPhoto();
List<MaterialAudioVO> audioVOList = dataVO.getAudio(); List<MaterialAudioVO> audioVOList = dataVO.getAudio();
@ -58,7 +58,7 @@ public class MaterialDataServiceImpl implements MaterialDataService {
if(textVOList != null && textVOList.size() > 0) { if(textVOList != null && textVOList.size() > 0) {
for (MaterialTextVO text : textVOList) { for (MaterialTextVO text : textVOList) {
text.setMaterialId(dataVO.getMaterialId()); text.setMaterialId(dataVO.getMaterialId());
String textId = materialTextService.saveReturnId(text); String textId = materialTextService.saveReturnId(token, text);
} }
} }
/** /**
@ -68,7 +68,7 @@ public class MaterialDataServiceImpl implements MaterialDataService {
if(photoVOList != null && photoVOList.size() > 0) { if(photoVOList != null && photoVOList.size() > 0) {
for (MaterialPhotoVO photo : photoVOList) { for (MaterialPhotoVO photo : photoVOList) {
photo.setMaterialId(dataVO.getMaterialId()); photo.setMaterialId(dataVO.getMaterialId());
String photoId = materialPhotoService.saveReturnId(photo); String photoId = materialPhotoService.saveReturnId(token, photo);
} }
} }
/** /**
@ -78,7 +78,7 @@ public class MaterialDataServiceImpl implements MaterialDataService {
if(audioVOList != null && audioVOList.size() > 0) { if(audioVOList != null && audioVOList.size() > 0) {
for (MaterialAudioVO audio : audioVOList) { for (MaterialAudioVO audio : audioVOList) {
audio.setMaterialId(dataVO.getMaterialId()); audio.setMaterialId(dataVO.getMaterialId());
String audioId = materialAudioService.saveReturnId(audio); String audioId = materialAudioService.saveReturnId(token, audio);
} }
} }
/** /**
@ -88,7 +88,7 @@ public class MaterialDataServiceImpl implements MaterialDataService {
if(videoVOList != null && videoVOList.size() > 0) { if(videoVOList != null && videoVOList.size() > 0) {
for (MaterialVideoVO video : videoVOList) { for (MaterialVideoVO video : videoVOList) {
video.setMaterialId(dataVO.getMaterialId()); video.setMaterialId(dataVO.getMaterialId());
String videoId = materialVideoService.saveReturnId(video); String videoId = materialVideoService.saveReturnId(token, video);
} }
} }
/** /**
@ -98,7 +98,7 @@ public class MaterialDataServiceImpl implements MaterialDataService {
if(mapVOList != null && mapVOList.size() > 0) { if(mapVOList != null && mapVOList.size() > 0) {
for (MaterialMapVO map : mapVOList) { for (MaterialMapVO map : mapVOList) {
map.setMaterialId(dataVO.getMaterialId()); map.setMaterialId(dataVO.getMaterialId());
String mapId = materialMapService.saveReturnId(map); String mapId = materialMapService.saveReturnId(token, map);
} }
} }
/** /**
@ -108,7 +108,7 @@ public class MaterialDataServiceImpl implements MaterialDataService {
if(linkVOList != null && linkVOList.size() > 0) { if(linkVOList != null && linkVOList.size() > 0) {
for (MaterialLinkVO link : linkVOList) { for (MaterialLinkVO link : linkVOList) {
link.setMaterialId(dataVO.getMaterialId()); link.setMaterialId(dataVO.getMaterialId());
String linkId = materialLinkService.saveReturnId(link); String linkId = materialLinkService.saveReturnId(token, link);
} }
} }
} }