package com.yeshi.fanli.service.inter.dynamic;
|
|
import java.util.List;
|
|
import org.springframework.web.multipart.MultipartFile;
|
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
|
import com.yeshi.fanli.entity.dynamic.CommentInfo;
|
import com.yeshi.fanli.entity.dynamic.DynamicInfo;
|
import com.yeshi.fanli.entity.dynamic.GoodsEvaluate;
|
import com.yeshi.fanli.entity.dynamic.ImgInfo;
|
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);
|
|
public long countValid();
|
|
/**
|
* 查询
|
* @param start
|
* @param count
|
* @param key
|
* @param state
|
* @return
|
*/
|
public List<GoodsEvaluate> query(int start, int count, String key, Integer state, int dynamicType);
|
|
public long count(String key, Integer state,int dynamicType);
|
|
|
/**
|
* 添加分享次数
|
* @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 void saveSingleGoods(String pid, Long goodsId, Integer goodsType, String videoUrl, Integer picNum, String picUrls,
|
MultipartHttpServletRequest fileRequest) throws GoodsEvaluateException, Exception;
|
|
/**
|
* 单个商品券信息
|
* @param pid
|
* @param commentInfo
|
* @throws GoodsEvaluateException
|
* @throws Exception
|
*/
|
public void saveCurrencyCoupon(String pid, int kind, CommentInfo commentInfo) throws GoodsEvaluateException, Exception;
|
|
|
public void saveActivityPic(String pid, ImgInfo imgInfo, 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 saveGoodsCoupon(String pid, String content) throws GoodsEvaluateException, Exception;
|
|
|
public void release(String id) throws GoodsEvaluateException;
|
|
|
public void addGoodsEvaluateByDynamicInfo(DynamicInfo info);
|
|
|
public void saveGoodsComment(String id, int kind, List<CommentInfo> comments) throws GoodsEvaluateException, Exception;
|
|
|
}
|