package com.tzld.piaoquan.api.dao.mapper.wecom.thirdpart.ext;

import com.tzld.piaoquan.api.model.po.contentplatform.ContentPlatformVideo;
import com.tzld.piaoquan.api.model.po.wecom.thirdpart.ThirdPartWeComVideo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ThirdPartWeComVideoMapperExt {

    String getVideoMaxDt();

    void updateOtherVideoStatus(@Param("dt") String dt, @Param("videoIdList") List<Long> videoIdList, @Param("now") Long now);

    void batchInsertThirdPartWeComVideo(@Param("records") List<ThirdPartWeComVideo> saveList);

    void updateVideoStatusWithOldStatus(@Param("videoId") Long videoId,
                                        @Param("status") Integer status,
                                        @Param("oldStatus") Integer oldStatus,
                                        @Param("now") Long now);

    List<ContentPlatformVideo> getVideoMinScoreList(@Param("dt") String dt,
                                                    @Param("videoMinScore") Double videoMinScore,
                                                    @Param("roomId") String roomId,
                                                    @Param("offset") int offset,
                                                    @Param("pageSize") int pageSize,
                                                    @Param("sort") String sort);
}