/*
 * Copyright (c) 2018-2999 广州亚米信息科技有限公司 All rights reserved.
 *
 * https://www.gz-yami.com/
 *
 */

package com.yami.shop.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yami.shop.bean.model.ShopWithdrawCash;
import com.yami.shop.common.util.PageParam;

/**
 * 商家提现申请信息
 *
 * @author Dwl
 * @date 2019-09-19 14:22:08
 */
public interface ShopWithdrawCashService extends IService<ShopWithdrawCash> {

    /**
     * 提现申请
     *
     * @param shopWithdrawCash
     */
    void withdrawCash(ShopWithdrawCash shopWithdrawCash);

    /**
     * 分页获取提现申请数据
     *
     * @param page
     * @param shopWithdrawCash
     * @return
     */
    IPage<ShopWithdrawCash> pageShopWithdrawCash(PageParam<ShopWithdrawCash> page, ShopWithdrawCash shopWithdrawCash);

    void auditWithdrawCash(Long withdrawCashId, ShopWithdrawCash shopWithdrawCash, Long userId, String openId);

    ShopWithdrawCash getShopWithdrawCashByShopId(Long shopId);
}
