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

import com.aliyuncs.mts.model.v20140618.CancelJobResponse;
import com.platform.common.utils.R;
import com.platform.modules.live.utils.AliMediaUtils;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
import org.apache.commons.lang.StringUtils;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
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.LiveVideoTranscodingDao;
import com.platform.modules.live.entity.LiveVideoTranscodingEntity;
import com.platform.modules.live.service.LiveVideoTranscodingService;
import org.springframework.transaction.annotation.Transactional;


@Service("liveVideoTranscodingService")
@Transactional
public class LiveVideoTranscodingServiceImpl extends ServiceImpl<LiveVideoTranscodingDao, LiveVideoTranscodingEntity> implements LiveVideoTranscodingService {

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

        return new PageUtils(page);
    }

}
