package com.css.simulation.resource.scheduler.adapter.controller;


import api.common.pojo.common.ResponseBodyVO;
import com.css.simulation.resource.scheduler.app.service.AlgorithmApplicationService;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RefreshScope
@RestController
@RequestMapping("/algorithm")
public class AlgorithmController {

    @Resource
    AlgorithmApplicationService algorithmApplicationService;


    @RequestMapping("/check")
    public ResponseBodyVO<String> check(
            @RequestParam("minioPath") String minioPath
    ) {
        return algorithmApplicationService.check(minioPath);
    }

}
