admin
2020-05-20 98b1a0affd69bbe63223c21fdd2c404e8bedfccb
fanli/src/main/java/com/yeshi/fanli/service/inter/dynamic/GoodsEvaluateService.java
@@ -1,18 +1,23 @@
package com.yeshi.fanli.service.inter.dynamic;
import java.util.Date;
import java.util.List;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartHttpServletRequest;
import com.yeshi.fanli.dto.pdd.PDDGoodsDetail;
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.jd.JDGoods;
import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
import com.yeshi.fanli.exception.dynamic.GoodsEvaluateException;
public interface GoodsEvaluateService {
   public void saveHead(MultipartFile file, GoodsEvaluate record) throws GoodsEvaluateException;
   public String saveHead(MultipartFile file, GoodsEvaluate record) throws GoodsEvaluateException;
   
   
   public GoodsEvaluate getById(String id);
@@ -38,9 +43,9 @@
    * @param state
    * @return
    */
   public List<GoodsEvaluate> query(int start, int count, String key, Integer state);
   public List<GoodsEvaluate> query(int start, int count, String key, Integer state, int dynamicType, String typeEnum);
   public long count(String key, Integer state);
   public long count(String key, Integer state,int dynamicType, String typeEnum);
   
   /**
@@ -74,7 +79,7 @@
    * @throws GoodsEvaluateException
    * @throws Exception
    */
   public void saveSingleGoods(String pid, Long goodsId, Integer goodsType, String videoUrl, Integer picNum, String picUrls,
   public String saveSingleGoods(String pid, Long goodsId, Integer goodsType, String videoUrl, Integer picNum, String picUrls,
         MultipartHttpServletRequest fileRequest) throws GoodsEvaluateException, Exception;
   /**
@@ -84,11 +89,95 @@
    * @throws GoodsEvaluateException
    * @throws Exception
    */
   public void saveSingleGoodsCoupon(String pid, CommentInfo commentInfo) throws GoodsEvaluateException, Exception;
   public void saveCurrencyCoupon(String pid, int kind, CommentInfo commentInfo) throws GoodsEvaluateException, Exception;
   public void saveActivityPic(String pid, ImgInfo imgInfo, MultipartHttpServletRequest fileRequest)
   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) throws Exception;
   public long countValidMaterials(int type);
   public void release(String id) throws GoodsEvaluateException;
   public void saveGoodsComment(String id, int kind, List<CommentInfo> comments) throws GoodsEvaluateException, Exception;
   /**
    * 自动生成数据
    */
   public void addGoodsEvaluateByDaTaoKe();
   public void updateTaoBaoGoods(TaoBaoGoodsBrief goods);
   public void updateJDGoods(JDGoods jdGoods);
   public void updatePDDGoods(PDDGoodsDetail pddGoods);
   public void addRanDomShareCount();
   /**
    *  添加发圈内容
    * @param goodsId 商品id  必传
    * @param cid 大淘客分类id  必传
    * @param title 标题    必传
    * @param comment
    */
   public void addGoodsEvaluate(Long goodsId,List<ImgInfo> imgList, ActivityUser user, String title,String comment,Date startTime) throws GoodsEvaluateException;
   /**
    * 下架商品
    * @param goodsId
    */
   public void offlineTaoBaoGoods(Long goodsId);
   /**
    * 状态切换
    * @param id
    * @throws GoodsEvaluateException
    */
   public void switchState(String id) throws GoodsEvaluateException;
}