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

import com.td.WaDa.common.pojo.Result;
import com.td.WaDa.common.service.*;
import com.td.WaDa.game.complayerscore.pojo.ComPlayerScore;
import com.td.WaDa.game.complayerscore.vo.ComPlayerScoreVo;

import java.util.Map;

public interface ComPlayerScoreService extends CommonService<ComPlayerScoreVo, ComPlayerScore, Integer> {

    /**
     * 积分兑换种子
     *
     * @param userId 用户ID
     * @param amount 本次兑换数量
     * @param seedId 种子id
     * @return {@link Result}<{@link String}>
     */
    Result<Map> exchange(String userId, Integer amount, Integer seedId);


    Map getScore(String userId);
}
