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

import com.td.boss.common.service.*;
import com.td.boss.game.complayergoods.pojo.ComPlayerGoods;
import com.td.boss.game.complayergoods.vo.ComPlayerGoodsSimpleVo;
import com.td.boss.game.complayergoods.vo.ComPlayerGoodsTypeSumVo;
import com.td.boss.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();
}
