package cn.com.ctop.kuaishou.modules.ai.service;

import cn.com.ctop.kuaishou.modules.ai.entity.KuaishouLandpagePackage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;

import java.util.List;

/**
 * @Description: 落地页账户项目关联表
 * @Author: jeecg-boot
 * @Date: 2021-05-11
 * @Version: V1.0
 */
public interface IKuaishouLandpagePackageService extends IService<KuaishouLandpagePackage> {

    Result<Object> queryPageList(KuaishouLandpagePackage kuaishouLandpagePackage, Integer pageNo, Integer pageSize);

    Result<Object> synchronousData(Long projectId);

    Result<Object> getRelatedAccounts(Long siteId);

    Result<Object> getRelatedGroups(Long siteId, Long accountId);

    /**
     * 绑定落地页与广告组的关系
     *
     * @param siteId     落地页Id
     * @param creativeId 创意ID
     * @param unitId     广告组ID
     * @param accountId  账户ID
     * @return void
     * @throws
     * @author ZHAOXA
     */
    void createLandPageAndUnit(Long siteId, Long creativeId, Long unitId, Long accountId);

}
