图片套版生成模块
This commit is contained in:
parent
5e5e95435c
commit
77e5d1f08b
@ -10,7 +10,7 @@ public interface MaterialDataService {
|
||||
* @param dataVO 素材对象
|
||||
* @return
|
||||
*/
|
||||
public void save(MaterialDataVO dataVO);
|
||||
public void save(String token, MaterialDataVO dataVO);
|
||||
|
||||
/**
|
||||
* 查询素材包素材
|
||||
|
@ -44,7 +44,7 @@ public class MaterialDataServiceImpl implements MaterialDataService {
|
||||
private IMaterialLinkService materialLinkService;
|
||||
|
||||
@Override
|
||||
public void save(MaterialDataVO dataVO) {
|
||||
public void save(String token, MaterialDataVO dataVO) {
|
||||
List<MaterialTextVO> textVOList = dataVO.getText();
|
||||
List<MaterialPhotoVO> photoVOList = dataVO.getPhoto();
|
||||
List<MaterialAudioVO> audioVOList = dataVO.getAudio();
|
||||
@ -58,7 +58,7 @@ public class MaterialDataServiceImpl implements MaterialDataService {
|
||||
if(textVOList != null && textVOList.size() > 0) {
|
||||
for (MaterialTextVO text : textVOList) {
|
||||
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) {
|
||||
for (MaterialPhotoVO photo : photoVOList) {
|
||||
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) {
|
||||
for (MaterialAudioVO audio : audioVOList) {
|
||||
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) {
|
||||
for (MaterialVideoVO video : videoVOList) {
|
||||
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) {
|
||||
for (MaterialMapVO map : mapVOList) {
|
||||
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) {
|
||||
for (MaterialLinkVO link : linkVOList) {
|
||||
link.setMaterialId(dataVO.getMaterialId());
|
||||
String linkId = materialLinkService.saveReturnId(link);
|
||||
String linkId = materialLinkService.saveReturnId(token, link);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user