package com.platform.modules.live.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.platform.common.utils.PageUtils;
import com.platform.common.utils.Query;

import com.platform.modules.live.dao.LiveStreamBlackDao;
import com.platform.modules.live.entity.LiveStreamBlackEntity;
import com.platform.modules.live.service.LiveStreamBlackService;
import org.springframework.transaction.annotation.Transactional;


@Service("liveStreamBlackService")
@Transactional
public class LiveStreamBlackServiceImpl extends ServiceImpl<LiveStreamBlackDao, LiveStreamBlackEntity> implements LiveStreamBlackService {

    @Override
    @Transactional(readOnly = true)
    public PageUtils queryPage(Map<String, Object> params) {
        Page<LiveStreamBlackEntity> page = this.selectPage(
                new Query<LiveStreamBlackEntity>(params).getPage(),
                new EntityWrapper<LiveStreamBlackEntity>()
        );

        return new PageUtils(page);
    }

}
