package com.ssj.service.sys.wallet.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import com.ssj.bean.sys.wallet.domain.Wallet;
import com.ssj.framework.core.common.service.BaseService;

import java.util.Map;

/**
 * @author Mount Liu
 * @date 2018/11/19
 */
public interface WalletService extends BaseService<Wallet, String> {
    /**
     * 分页查询列表
     * @param params
     * @param sp
     * @return
     */
    Page<Wallet> findByPage(Map<String, Object> params, Pageable sp);

    /**
     * 通过用户id查看信息
     * @param userId
     * @return
     */
    Wallet findByUserId(String userId);
}
