package cn.com.ctop.kuaishou.modules.batch.mapper;

import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouTemplate;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 快手-定向模板
 *
 * @author: jeecg-boot
 * @date: 2020-11-09
 * @cersion: V1.0
 */
public interface KuaishouTemplateMapper extends BaseMapper<KuaishouTemplate> {
    List<JSONObject> getJsonArrByAccountId(@Param("accountId") Long accountId, @Param("platformOs") Integer platformOs, @Param("autoTarget") Boolean autoTarget);

    void replaceBatch(@Param("templateList") List<KuaishouTemplate> templateList);

    JSONObject queryByTemplateId(@Param("templateId") Long templateId);

    void deleteOldTemplate(@Param("accountId") Long accountId);
}
