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

import com.persagy.adm.server.algorithm.domain.DeliverPlanVo;
import com.persagy.adm.server.algorithm.domain.ModelFileVo;
import com.persagy.adm.server.algorithm.domain.QueryModelFileVo;
import com.persagy.adm.server.algorithm.service.AdmModelService;
import com.persagy.dmp.common.model.response.CommonResult;
import com.persagy.dmp.common.utils.ResultHelper;
import lombok.RequiredArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

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

/**
 * 02-交付计划入口
 * 后端服务名:adm-server
 * @author : lijie
 * Update By 2022/1/12 14:01
 */
@RestController
@RequestMapping("/deliver/plan")
@RequiredArgsConstructor
public class AdmDeliverPlanController {

    private final AdmModelService admModelService;

    /**
     * 020101-交付计划-处理BOSS产生的交付计划
     * @param deliverPlanVo : 交付计划信息
     * @return : com.persagy.dmp.common.model.response.CommonResult<java.util.List<java.lang.Void>>
     * @author : lijie
     * Update By 2022/1/14 17:22
     */
    @PostMapping(value = "/relayDeliverPlan")
    public CommonResult<List<Void>> relayDeliverPlan(@Validated @RequestBody DeliverPlanVo deliverPlanVo) {
        admModelService.relayDeliverPlan(deliverPlanVo);
        return ResultHelper.multi(new ArrayList<>());
    }

}
