package com.yeshi.buwan.job.video;
|
|
import com.xxl.job.core.biz.model.ReturnT;
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
import com.yeshi.buwan.service.manager.search.SolrAlbumVideoDataManager;
|
import org.springframework.stereotype.Component;
|
|
import javax.annotation.Resource;
|
|
@Component
|
public class VideoUpdateJob {
|
|
@Resource
|
private SolrAlbumVideoDataManager solrAlbumDataManager;
|
|
/**
|
* 同步所有专辑
|
*
|
* @param param
|
* @return
|
* @throws Exception
|
*/
|
@XxlJob("video-update-solr-syncAllAlbum")
|
public ReturnT<String> syncAllAlbum(String param) throws Exception {
|
solrAlbumDataManager.syncAllAlbum();
|
return ReturnT.SUCCESS;
|
}
|
}
|