package com.persagy.adm.server.algorithm.controller;


import com.persagy.adm.server.algorithm.service.AdmModelBackService;
import com.persagy.dmp.common.model.response.CommonResult;
import com.persagy.dmp.common.utils.ResultHelper;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * 02-模型文件后台管理
 * @author : lijie
 * Update By 2022/1/17 10:30
 */
@RestController
@RequestMapping("/model/back")
@RequiredArgsConstructor
public class AdmModelBackController {

    private final AdmModelBackService admModelBackService;


    /**
     * 020101-模型文件后台管理-进行模型文件解析
     * @return : com.persagy.dmp.common.model.response.CommonResult<java.util.List<com.persagy.adm.server.algorithm.entity.AdmModelFile>>
     * @author : lijie
     * Update By 2022/1/12 16:32
     * @undone
     */
    @PostMapping(value = "/analysisModelsBack")
    public CommonResult<List<Void>> analysisModelsBack() {
        admModelBackService.analysisModelBack();

        return ResultHelper.multi(new ArrayList<>());
    }

}
