package com.ruixuan.launch.mapper;

import com.ruixuan.launch.entity.KuaishouLaunchTargetTemplate;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 账户下所属定向信息Mapper接口
 *
 * @author ruoyi
 * @date 2022-07-05
 */
public interface KuaishouLaunchTargetTemplateMapper {
    /**
     * 查询账户下所属定向信息
     *
     * @param id 账户下所属定向信息主键
     * @return 账户下所属定向信息
     */
    public KuaishouLaunchTargetTemplate selectKuaishouLaunchTargetTemplateById(Long id);

    /**
     * 查询账户下所属定向信息列表
     *
     * @param kuaishouLaunchTargetTemplate 账户下所属定向信息
     * @return 账户下所属定向信息集合
     */
    public List<KuaishouLaunchTargetTemplate> selectKuaishouLaunchTargetTemplateList(KuaishouLaunchTargetTemplate kuaishouLaunchTargetTemplate);

    /**
     * 新增账户下所属定向信息
     *
     * @param kuaishouLaunchTargetTemplate 账户下所属定向信息
     * @return 结果
     */
    public Long insertKuaishouLaunchTargetTemplate(KuaishouLaunchTargetTemplate kuaishouLaunchTargetTemplate);

    /**
     * 修改账户下所属定向信息
     *
     * @param kuaishouLaunchTargetTemplate 账户下所属定向信息
     * @return 结果
     */
    public int updateKuaishouLaunchTargetTemplate(KuaishouLaunchTargetTemplate kuaishouLaunchTargetTemplate);

    /**
     * 删除账户下所属定向信息
     *
     * @param id 账户下所属定向信息主键
     * @return 结果
     */
    public int deleteKuaishouLaunchTargetTemplateById(Long id);

    /**
     * 批量删除账户下所属定向信息
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteKuaishouLaunchTargetTemplateByIds(Long[] ids);

    List<KuaishouLaunchTargetTemplate> selectKuaishouLaunchTargetTemplateByIds(@Param("ids") List<Long> ids);

    KuaishouLaunchTargetTemplate getOne(@Param("accountId") Long accountId, String targetName, String targetType);
}