package com.yeshi.fanli.service.inter.user.cloud;
|
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.bus.user.cloud.UserCloudGoods;
|
import com.yeshi.fanli.exception.user.cloud.UserCloudGoodsException;
|
|
public interface UserCloudGoodsService {
|
|
public List<UserCloudGoods> listByUid(long start, int count, Long uid);
|
|
public long countByUid(Long uid);
|
|
/**
|
* 根据商品信息查询
|
* @param uid
|
* @param goodsId
|
* @param goodsType
|
* @return
|
*/
|
public UserCloudGoods getByUidAndGoods(Long uid, Long goodsId, Integer goodsType);
|
|
|
/**
|
* 添加发单库商品
|
* @param uid
|
* @param set
|
* @param goodsType
|
* @throws UserCloudGoodsException
|
*/
|
public UserCloudGoods addGoods(Long uid, Long goodsId, Integer goodsType, Long sellerId) throws UserCloudGoodsException;
|
|
|
/**
|
* 用户删除商品
|
* @param id
|
* @param uid
|
*/
|
public void deleteByPrimaryKeyAndUid(Long id, Long uid);
|
|
/**
|
* 查询未分享的商品
|
* @param uid
|
* @return
|
*/
|
public List<UserCloudGoods> listByNotShare(Long uid);
|
|
/**
|
* 查询
|
* @param id
|
*/
|
public UserCloudGoods selectByPrimaryKey(Long id);
|
|
|
/**
|
* 更新信息
|
* @param record
|
*/
|
public void updateByPrimaryKeySelective(UserCloudGoods record);
|
|
|
/**
|
* 查询
|
* @param page
|
* @param pageSize
|
* @param key
|
* @return
|
*/
|
public List<UserCloudGoods> query(int page, int pageSize, String key);
|
|
public long count(String key);
|
|
/**
|
* 选品库
|
* @param uid
|
*/
|
public void sendGoodsMQMsg(Long uid);
|
}
|