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.LiveVideoTranscodingExtDao;
import com.platform.modules.live.entity.LiveVideoTranscodingExtEntity;
import com.platform.modules.live.service.LiveVideoTranscodingExtService;
import org.springframework.transaction.annotation.Transactional;


@Service("liveVideoTranscodingExtService")
@Transactional
public class LiveVideoTranscodingExtServiceImpl extends ServiceImpl<LiveVideoTranscodingExtDao, LiveVideoTranscodingExtEntity> implements LiveVideoTranscodingExtService {

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

        return new PageUtils(page);
    }

    @Override
    public void save(LiveVideoTranscodingExtEntity liveVideoTranscodingExtEntity) {
        this.baseMapper.save(liveVideoTranscodingExtEntity);
    }

}
