package com.crm.globex.controller;


import com.crm.globex.service.AccountApplyPasswordResetService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @description:
 * @author: houn
 * @create: 2020-07-24 11:06
 **/
@RestController
@RequestMapping("/account/apply/password/reset")
public class AccountApplyPasswordResetController {
    @Autowired
    private AccountApplyPasswordResetService service;

    @Scheduled(fixedDelay = 5000)
    public void scheduleAutomaticDealRest() throws Exception {
        service.scheduleAutomaticDealRest();
    }

}
