package cn.com.poc.agent_application.scheduler;


import cn.com.poc.expose.aggregate.AgentApplicationExposeService;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class RecommendQuestionScheduler {

    @Resource
    private AgentApplicationExposeService agentApplicationExposeService;

    /**
     * 每日凌晨
     *
     * @throws Exception
     */
    @Scheduled(cron = "0 0 0 * * ?")
    public void knowledgeInfoStatusUpdateScheduler() throws Exception {
        agentApplicationExposeService.createRecommendQuestion();
    }
}
