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

package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.dto.ShopAuditingInfoDto;
import com.yami.shop.bean.param.AuditingInfoParam;
import com.yami.shop.dao.ShopAuditingMapper;
import com.yami.shop.bean.model.ShopAuditing;
import com.yami.shop.service.ShopAuditingService;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

/**
 * 商家审核信息
 *
 * @author Dwl
 * @date 2019-09-19 14:02:57
 */
@Service
@AllArgsConstructor
public class ShopAuditingServiceImpl extends ServiceImpl<ShopAuditingMapper, ShopAuditing> implements ShopAuditingService {

    private final ShopAuditingMapper shopAuditingMapper;


    @Override
   public  ShopAuditing getShopAuditingByUserId(String userId){
        return shopAuditingMapper.getShopAuditingByUserId(userId);
    }

    @Override
    public IPage<ShopAuditingInfoDto> auditingInfoList(Page<ShopAuditingInfoDto> page, AuditingInfoParam auditingInfoParam) {
        IPage<ShopAuditingInfoDto> resultList = shopAuditingMapper.auditingInfoList(page,auditingInfoParam);
        return resultList;
    }

}
