package com.tzld.piaoquan.growth.common.dao.mapper.ext;


import com.tzld.piaoquan.growth.common.model.po.CgiReplyBucketData;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface CgiReplyBucketDataMapperExt {
    void updateBucketDataTitleCoverByGhId(@Param("ghId") String ghId,
                                          @Param("videoId") Long videoId,
                                          @Param("title") String title,
                                          @Param("cover") String cover);

    void deleteBucketDataByGhId(@Param("ghId") String ghId);

    CgiReplyBucketData getOldCgiReplyData(@Param("videoId") Long miniVideoId);

    void updateDeleteStatus(@Param("ghId") String ghId,
                            @Param("strategy") String strategy,
                            @Param("msgType") int msgType,
                            @Param("isDelete") int isDelete);

    List<String> getRootSourceIdByPrefix(String prefix, Date startDate);
}