package com.yeshi.fanli.service.inter.user.cloud;
|
|
import java.util.List;
|
|
import com.yeshi.fanli.entity.bus.user.cloud.CloudOrderMenuEnum;
|
import com.yeshi.fanli.entity.bus.user.cloud.UserCloud;
|
import com.yeshi.fanli.entity.dynamic.GoodsEvaluate;
|
import com.yeshi.fanli.exception.user.cloud.UserCloudException;
|
|
public interface UserCloudService {
|
|
/**
|
* 查询有效
|
* @return
|
*/
|
public UserCloud getValidByUid(Long uid);
|
|
/**
|
* 统计所有
|
* @param uid
|
* @return
|
*/
|
public long countByUid(Long uid);
|
|
/**
|
* 最后一条
|
* @param uid
|
* @return
|
*/
|
public UserCloud getLastByUid(Long uid);
|
|
/**
|
* 更新登录微信信息
|
* @param uid
|
* @param wxId
|
* @param wxName
|
* @param wxPortrait
|
*/
|
public void updateWXInfo(Long uid, String wxId, String wxName, String wxPortrait) throws UserCloudException;
|
|
/**
|
* 支付完成开通云发单信息
|
* @param uid
|
* @param orderId
|
* @param menuEnum
|
* @throws UserCloudException
|
*/
|
public void openCloud(Long uid, Long orderId, CloudOrderMenuEnum menuEnum) throws UserCloudException;
|
|
|
/**
|
* 刷新群
|
* @param uid
|
* @throws UserCloudException
|
*/
|
public void searchGroup(Long uid) throws UserCloudException;
|
|
|
/**
|
* 发送自定义商品
|
* @param uid
|
* @param id
|
*/
|
public void autoSendCustomGoods(Long uid, Long id);
|
|
/**
|
* 自动发送动态
|
* @param uid
|
* @param id
|
*/
|
public void autoSendByDynamic(Long uid, String id);
|
|
/**
|
* 手动云发单 - 动态
|
* @param uid
|
* @param id
|
* @throws UserCloudException
|
*/
|
public void sendByDynamic(Long uid, String id) throws UserCloudException;
|
|
/**
|
* 手动云发单 - 商品
|
* @param uid
|
* @param goodsId
|
* @param goodsType
|
* @throws UserCloudException
|
*/
|
public void sendCustomGoods(Long uid, Long goodsId, Integer goodsType, Long sellerId) throws UserCloudException;
|
|
/**
|
* 定时发送云发单
|
* @param id
|
*/
|
public void fixedTimeSend(List<GoodsEvaluate> listActivity, List<GoodsEvaluate> listGoods);
|
|
public List<UserCloud> query(int page, int count, String key, Integer state);
|
|
public long count(String key, Integer state);
|
|
/**
|
* 缓存微信匹配群
|
* @param wxId
|
* @param groupId
|
*/
|
public void cacheMatchGroup(String wxId, String groupId);
|
|
/**
|
* 站内信通知用户微信下线
|
* @param uid
|
*/
|
public void offlineNotificationZNX(Long uid);
|
|
}
|