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

package com.yami.shop.platform.controller;


import com.yami.shop.bean.model.ShopWallet;
import com.yami.shop.common.annotation.SysLog;

import javax.validation.Valid;

import com.yami.shop.service.ShopWalletService;
import org.springframework.http.ResponseEntity;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import lombok.AllArgsConstructor;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.yami.shop.common.util.PageParam;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.common.util.R;

/**
 * 商家钱包信息管理实现
 *
 * @author LGH
 * @version 1.0.0
 * @since 2019-09-29
 */
@RestController
@AllArgsConstructor
@RequestMapping("/shop/shopWallet" )
public class ShopWalletController {

    private final ShopWalletService shopWalletService;

    /**
     * 分页查询
     * @param page 分页对象
     * @param shopWallet 商家钱包信息
     * @return 分页数据
     */
    @GetMapping("/page" )
    public R<IPage<ShopWallet>> getShopWalletPage(PageParam<ShopWallet> page, ShopWallet shopWallet) {
        return R.SUCCESS(shopWalletService.pageShopWallet(page, shopWallet));
    }
}
