package com.jiayue.ipp.idp.controller;

import com.jiayue.ipp.idp.service.GenerateBackPassDataService;
import com.jiayue.ipp.idp.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 控制中心
 *
 * @Author: tl
 * @Date: 2023/7/10 11:17
 */
@RequestMapping("/console")
@RestController
public class ConsoleController {
    @Autowired
    GenerateBackPassDataService generateBackPassDataService;

    @GetMapping("/generateBackPassData")
    public R GenerateBackPassData(){

            generateBackPassDataService.genRealPowerDataJsonFile();
            return R.ok();

    }
}
