package com.yeshi.fanli.service.inter.dynamic;
|
|
import java.util.Date;
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.SystemEnum;
|
import com.yeshi.goods.facade.dto.taobao.dataoke.DaTaoKeListTopOffDTO;
|
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
import com.yeshi.fanli.dto.pdd.PDDGoodsDetail;
|
import com.yeshi.fanli.dto.suning.SuningGoodsInfo;
|
import com.yeshi.fanli.dto.vip.goods.VIPGoodsInfo;
|
import com.yeshi.fanli.entity.bus.activity.ActivityUser;
|
import com.yeshi.fanli.entity.dynamic.CommentInfo;
|
import com.yeshi.fanli.entity.dynamic.GoodsEvaluate;
|
import com.yeshi.fanli.entity.dynamic.ImgInfo;
|
import com.yeshi.fanli.entity.dynamic.GoodsEvaluate.EvaluateEnum;
|
import com.yeshi.fanli.entity.jd.JDGoods;
|
import com.yeshi.goods.facade.entity.taobao.TaoBaoGoodsBrief;
|
import com.yeshi.goods.facade.entity.taobao.dataoke.DaTaoKeDetailV2;
|
import com.yeshi.fanli.exception.dynamic.GoodsEvaluateException;
|
|
public interface GoodsEvaluateService {
|
|
public String saveHead(MultipartFile file, GoodsEvaluate record) throws GoodsEvaluateException;
|
|
|
public GoodsEvaluate getById(String id);
|
|
public void deleteBatchByPrimaryKey(List<String> list);
|
|
|
/**
|
* 查询有效并缓存
|
* @param start
|
* @param count
|
* @return
|
*/
|
public List<GoodsEvaluate> queryValidEvaluateCache(int start, int count,SystemEnum system);
|
|
public long countValid(SystemEnum system);
|
|
/**
|
* 查询
|
* @param start
|
* @param count
|
* @param key
|
* @param state
|
* @return
|
*/
|
public List<GoodsEvaluate> query(int start, int count, String key, Integer state, int dynamicType, String typeEnum,SystemEnum system);
|
|
public long count(String key, Integer state,int dynamicType, String typeEnum,SystemEnum system);
|
|
|
/**
|
* 添加分享次数
|
* @param id
|
*/
|
public void addShareNum(String id);
|
|
|
/**
|
* 保存评论
|
* @param pid
|
* @param commentInfo
|
* @throws GoodsEvaluateException
|
*/
|
public void saveComment(String pid, CommentInfo commentInfo) throws GoodsEvaluateException;
|
|
|
public void deleteComment(String pid, List<String> list) throws GoodsEvaluateException;
|
|
|
/**
|
* 保存商品信息单个
|
* @param pid
|
* @param goodsId
|
* @param goodsType
|
* @param videoUrl
|
* @param picNum
|
* @param picUrls
|
* @param fileRequest
|
* @throws GoodsEvaluateException
|
* @throws Exception
|
*/
|
public String saveSingleGoods(String pid, String goodsId, Integer goodsType, String videoUrl, Integer picNum, String picUrls, SystemEnum system,
|
MultipartHttpServletRequest fileRequest) throws GoodsEvaluateException, Exception;
|
|
/**
|
* 单个商品券信息
|
* @param pid
|
* @param commentInfo
|
* @throws GoodsEvaluateException
|
* @throws Exception
|
*/
|
public void saveCurrencyCoupon(SystemEnum system,String pid, int kind, CommentInfo commentInfo) throws GoodsEvaluateException, Exception;
|
|
|
public void saveActivityPic(String pid, ImgInfo imgInfo, String picUrls, MultipartHttpServletRequest fileRequest)
|
throws GoodsEvaluateException, Exception;
|
|
|
/**
|
* 多个商品保存信息
|
* @param pid
|
* @param videoUrl
|
* @param goodsList
|
* @param fileRequest
|
* @throws GoodsEvaluateException
|
* @throws Exception
|
*/
|
public void saveMultipleGoods(String pid, String videoUrl, String goodsList, MultipartHttpServletRequest fileRequest)
|
throws GoodsEvaluateException, Exception;
|
|
|
/**
|
* 素材
|
* @param pid
|
* @param videoUrl
|
* @param picUrls
|
* @param fileRequest
|
* @throws GoodsEvaluateException
|
* @throws Exception
|
*/
|
public void saveSuCai(String pid, String videoUrl, String picUrls, MultipartHttpServletRequest fileRequest)
|
throws GoodsEvaluateException, Exception;
|
|
|
/**
|
* 查询素材
|
* @param start
|
* @param count
|
* @return
|
*/
|
public List<GoodsEvaluate> queryMaterialsCache(int start, int count,int type,SystemEnum system) throws Exception;
|
|
public long countValidMaterials(int type,SystemEnum system);
|
|
|
|
public void release(String id) throws GoodsEvaluateException;
|
|
|
public void saveGoodsComment(String id, int kind, List<CommentInfo> comments,SystemEnum system) throws GoodsEvaluateException, Exception;
|
|
|
/**
|
* 自动生成数据
|
*/
|
public void addGoodsEvaluateByDaTaoKe(SystemEnum system);
|
|
|
public void updateTaoBaoGoods(TaoBaoGoodsBrief goods);
|
|
|
public void updateJDGoods(JDGoods jdGoods);
|
|
|
public void updatePDDGoods(PDDGoodsDetail pddGoods);
|
|
|
public void updateVIPGoods(VIPGoodsInfo goods);
|
|
public void updateSuningGoods(SuningGoodsInfo goods);
|
|
|
public void addRanDomShareCount(SystemEnum system);
|
|
/**
|
* 添加发圈内容
|
* @param goodsId 商品id 必传
|
* @param cid 大淘客分类id 必传
|
* @param title 标题 必传
|
* @param comment
|
*/
|
public void addGoodsEvaluate(String goodsId,List<ImgInfo> imgList, ActivityUser user, String title,String comment,Date startTime,SystemEnum system) throws GoodsEvaluateException;
|
|
|
/**
|
* 下架商品
|
* @param goodsId
|
*/
|
public void offlineTaoBaoGoods(String goodsId);
|
|
/**
|
* 状态切换
|
* @param id
|
* @throws GoodsEvaluateException
|
*/
|
public void switchState(String id) throws GoodsEvaluateException;
|
|
/**
|
* 查询
|
* @param date
|
* @return
|
*/
|
public List<GoodsEvaluate> listByStartTime(Date date);
|
|
|
/**
|
* 根据商品id、类型查询
|
* @param goodsId
|
* @param goodsType
|
* @return
|
*/
|
public GoodsEvaluate queryExistSingle(String goodsId, int goodsType,SystemEnum system);
|
|
/**
|
* 查询倒序
|
* @param start
|
* @param count
|
* @param dynamicType
|
* @return
|
*/
|
public List<GoodsEvaluate> queryValidSortASC(int start, int count, EvaluateEnum tyepEnum, boolean sortDesc);
|
|
|
/**
|
* 添加大淘客商品
|
* @param daTaoKe
|
* @return
|
*/
|
public boolean addByDaTaoKeGoods(DaTaoKeDetailV2 daTaoKe,SystemEnum system);
|
|
|
public int addGoodsEvaluate(TaoBaoGoodsBrief goodsBrief, List<String> imgs, ActivityUser user, String title,SystemEnum system)
|
throws GoodsEvaluateException;
|
|
/**
|
* 添加大淘客的线报
|
* @param dto
|
* @param user
|
* @param system
|
* @return
|
* @throws GoodsEvaluateException
|
*/
|
public int addGoodsEvaluate(DaTaoKeListTopOffDTO dto, ActivityUser user, SystemEnum system)
|
throws GoodsEvaluateException;
|
|
public List<GoodsEvaluate> queryValidZeroPoint(int start, int count);
|
|
}
|