package com.crm.globex.controller;

import com.crm.globex.service.FinanceDepositService;
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: 2022-04-24 11:06
 **/
@RestController
@RequestMapping("/finance/deposit")
public class FinanceDepositController {
    @Autowired
    private FinanceDepositService financeDepositService;

    @Scheduled(fixedDelay = 5000)
    public void scheduleAutomaticLogin() throws Exception {

        financeDepositService.scheduleAutomaticTrade();
    }

}
