package com.ssj.service.conch.game.service;

import com.ssj.framework.core.util.ResponseEntity;
import com.ssj.service.conch.game.request.RanklistReq;
import com.ssj.service.conch.game.request.SavePersonInfoReq;
import com.ssj.service.conch.game.request.SaveV1Req;
import org.springframework.data.domain.Pageable;

/**
 * @author Mount Liu
 * @date 2019/2/20
 */
public interface GameService {

    /**
     * 获取排行榜列表
     *
     * @param req
     * @param pageable
     * @return
     */
    ResponseEntity rankingList(RanklistReq req, Pageable pageable);

    /**
     * 保存结果
     *
     * @param userId
     * @param req
     * @return
     */
    ResponseEntity saveResult(String userId, SaveV1Req req);

    /**
     * 查询首页信息
     *
     * @param userId
     * @return
     */
    ResponseEntity homepageInfo(String userId);

    /**
     * 保存个人基本信息
     *
     * @param userId
     * @param req
     * @return
     */
    ResponseEntity savePersonInfo(String userId, SavePersonInfoReq req);

    /**
     * 查看测试结果
     *
     * @param userId
     * @return
     */
    ResponseEntity findResult(String userId);

    /**
     * 查看测试结果
     *
     * @param userId
     * @param selection
     * @return
     */
    ResponseEntity findQuestion(String userId, int selection);
}
