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.LiveVideoTranscodingMessageDao;
import com.platform.modules.live.entity.LiveVideoTranscodingMessageEntity;
import com.platform.modules.live.service.LiveVideoTranscodingMessageService;
import org.springframework.transaction.annotation.Transactional;


@Service("liveVideoTranscodingMessageService")
@Transactional
public class LiveVideoTranscodingMessageServiceImpl extends ServiceImpl<LiveVideoTranscodingMessageDao, LiveVideoTranscodingMessageEntity> implements LiveVideoTranscodingMessageService {

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

        return new PageUtils(page);
    }

}
