package cn.quantgroup.xyqb.xxlJob;

import cn.quantgroup.xyqb.service.wechat.IWechatFollowService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@JobHandler(value = "WechatFollowStatusJobHandler")
public class WechatFollowStatusJobHandler extends IJobHandler {
    @Autowired
    private IWechatFollowService wechatFollowService;

    @Override
    public ReturnT<String> execute(String s) throws Exception {
        wechatFollowService.executeTask();
        return SUCCESS;
    }
}
