package cn.quantgroup.xyqb.xxlJob;

import cn.quantgroup.xyqb.service.register.IUserDeregisterService;
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;

/**
 * 删除注销时间大于90的注销记录
 */
@Component
@JobHandler(value = "DeregisterTimeJobHandler")
public class DeregisterTimeJobHandler extends IJobHandler {
    @Autowired
    private IUserDeregisterService userDeregisterService;

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