| | |
| | |
|
| | | import java.util.List;
|
| | |
|
| | | import net.sf.json.JSONObject;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.activity.ActivityShareResult;
|
| | | import com.yeshi.fanli.entity.bus.activity.ActivityUser;
|
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivity;
|
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivityImg;
|
| | | import com.yeshi.fanli.entity.bus.activity.RecommendActivityInviteInfo;
|
| | | import com.yeshi.fanli.entity.taobao.TaoBaoGoodsBrief;
|
| | | import com.yeshi.fanli.exception.ActivityException;
|
| | | import com.yeshi.fanli.exception.share.UserShareGoodsRecordException;
|
| | |
|
| | | /**
|
| | | * 动态服务
|
| | |
| | | * @param top
|
| | | * @return
|
| | | */
|
| | | public RecommendActivity addShareGoodsRecommendActivity(Long activityUid, String title, List<Long> goodsList,
|
| | | boolean top, int shareCount) throws ActivityException;
|
| | | public RecommendActivity addShareGoodsRecommendActivity(Long activityUid, List<Long> goodsList,RecommendActivity activity) throws ActivityException, Exception;
|
| | |
|
| | | /**
|
| | | * 修改商品分享动态
|
| | |
| | | * @return
|
| | | * @throws ActivityException
|
| | | */
|
| | | public RecommendActivity updateShareGoodsRecommendActivity(Long id, Long activityUid, String title,
|
| | | List<Long> goodsList, boolean top, int shareCount) throws ActivityException;
|
| | | public RecommendActivity updateShareGoodsRecommendActivity(Long activityUid, List<Long> goodsList,
|
| | | RecommendActivity activity) throws ActivityException, Exception;
|
| | |
|
| | | /**
|
| | | * 更新分享商品动态的商品
|
| | |
| | | * @return
|
| | | * @throws ActivityException
|
| | | */
|
| | | public RecommendActivity addInviteImgRecommendActivity(Long activityUid, String title, String url, boolean top,
|
| | | int shareCount, int px, int py, int erCodeSize) throws ActivityException;
|
| | | public RecommendActivity addInviteImgRecommendActivity(Long activityUid, RecommendActivity activity, String url,
|
| | | int px, int py, int erCodeSize) throws ActivityException, Exception;
|
| | |
|
| | | /**
|
| | | * 修改邀请图动态
|
| | |
| | | * @return
|
| | | * @throws ActivityException
|
| | | */
|
| | | public RecommendActivity updateInviteImgRecommendActivity(Long id, Long activityUid, String title, String url,
|
| | | boolean top, int shareCount, int px, int py, int erCodeSize) throws ActivityException;
|
| | | public RecommendActivity updateInviteImgRecommendActivity(Long activityUid, RecommendActivity activity, String url,
|
| | | int px, int py, int erCodeSize) throws ActivityException, Exception;
|
| | |
|
| | | /**
|
| | | * 添加图文动态
|
| | |
| | | * @param top
|
| | | * @return
|
| | | */
|
| | | public RecommendActivity addTextAndImgRecommendActivity(Long activityUid, String title, List<String> imgList,
|
| | | boolean top, int shareCount) throws ActivityException;
|
| | | public RecommendActivity addTextAndImgRecommendActivity(Long activityUid, List<String> imgList,
|
| | | RecommendActivity activity) throws ActivityException, Exception;
|
| | |
|
| | | /**
|
| | | * 修改图文动态
|
| | |
| | | * @return
|
| | | * @throws ActivityException
|
| | | */
|
| | | public RecommendActivity updateTextAndImgRecommendActivity(Long id, Long activityUid, String title,
|
| | | List<String> imgList, boolean top, int shareCount) throws ActivityException;
|
| | | public RecommendActivity updateTextAndImgRecommendActivity(Long activityUid, List<String> imgList, |
| | | RecommendActivity activity) throws ActivityException, Exception;
|
| | |
|
| | | /**
|
| | | * 获取推荐活动列表
|
| | |
| | | *
|
| | | * @return
|
| | | */
|
| | | public long getRecommendActivityCount();
|
| | | public long getRecommendActivityCount(String title);
|
| | |
|
| | |
|
| | | public long getRecommendActivityCountCache();
|
| | |
| | | * @param uid
|
| | | * @param activityId
|
| | | * @return
|
| | | * @throws UserShareGoodsRecordException |
| | | */
|
| | | public ActivityShareResult shareActivityGoods(Long uid, Long activityId) throws ActivityException;
|
| | | public ActivityShareResult shareActivityGoods(Long uid, Long activityId) throws ActivityException, UserShareGoodsRecordException;
|
| | |
|
| | | /**
|
| | | * 分享邀请图片
|
| | |
| | | public RecommendActivity getRecommendActivityDetail(Long activityId);
|
| | |
|
| | | public ActivityUser selectActivityUserByPrimaryKey(Long id);
|
| | | |
| | | /**
|
| | | * 动态分享
|
| | | * @param uid
|
| | | * @param activityId
|
| | | * @return
|
| | | * @throws ActivityException
|
| | | */
|
| | | public JSONObject shareGoodsV2(Long uid, Long activityId) throws ActivityException, UserShareGoodsRecordException;
|
| | | |
| | | |
| | | /**
|
| | | * 更新动态商品详情
|
| | | * @param goods
|
| | | */
|
| | | public void updateRecommendActivityGoods(TaoBaoGoodsBrief goods);
|
| | | |
| | | /**
|
| | | * 查询需发布的动态
|
| | | * @return
|
| | | */
|
| | | public List<RecommendActivity> getNeedPublish();
|
| | |
|
| | | /**
|
| | | * 动态图片
|
| | | * @param activityId
|
| | | * @return
|
| | | */
|
| | | public List<String> getImgByActivityId(Long activityId);
|
| | | }
|