package cn.com.ctop.kuaishou.modules.batch.service.impl;

import cn.com.ctop.common.module.entity.CtopOauthToken;
import cn.com.ctop.common.module.service.ICtopOauthTokenService;
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouAdvertiserBaseInfoService;
import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouInterfaceService;
import cn.com.ctop.kuaishou.modules.batch.service.ISyncPullMaterialService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 异步获取素材信息
 */

@Service
public class SyncPullMaterialServiceImpl implements ISyncPullMaterialService {
    @Autowired
    private IKuaiShouAdvertiserBaseInfoService KuaiShouAdvertiserBaseInfoService;
    @Autowired
    private ICtopOauthTokenService oauthTokenService;
    @Autowired
    private IKuaishouInterfaceService iKuaishouInterfaceService;



    /**
     * 获取一户多开所有视频信息
     *
     * @param accountId
     * @param startDate
     * @param endDate
     */
    @Override
    public void getSyncVideoList(Long accountId, String startDate, String endDate) {
        CtopOauthToken token = oauthTokenService.getTokenByAccountId(accountId);
        iKuaishouInterfaceService.getVideoList(token, startDate, endDate);
    }


}
