package com.td.WaDa.game.complayergoods.service;

import com.td.WaDa.common.service.*;
import com.td.WaDa.game.complayergoods.pojo.ComPlayerGoods;
import com.td.WaDa.game.complayergoods.vo.ComPlayerGoodsTypeSumVo;
import com.td.WaDa.game.complayergoods.vo.ComPlayerGoodsVo;

import java.util.List;

public interface ComPlayerGoodsService extends CommonService<ComPlayerGoodsVo, ComPlayerGoods, String> {

    /**
     * 这里需要保证唯一
     * @param userId
     * @param index
     * @param type
     * @return
     */
    ComPlayerGoods findByUserIdAndIndexAndType(String userId,Integer index, Integer type);

    List<ComPlayerGoods> findAllByUserId(String userId);


    //
    List<ComPlayerGoodsTypeSumVo> findAllGroupByGoodsType();
}
