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

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;

/**
 * 01-模型文件管理
 * 后端服务名:adm-server
 * @author : lijie
 * Update By 2022/1/12 14:01
 */
@RestController
@RequestMapping("/model")
@RequiredArgsConstructor
public class AdmModelController {

    private final AdmModelService admModelService;

    /**
     * 010101-模型文件-根据建筑id查询模型文件列表
     * @param queryModelFileVo : 模型文件查询信息
     * @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 = "/queryModelFilesByBuildingId")
    public CommonResult<List<ModelFileVo>> queryFloorsByBuildingId(@RequestBody QueryModelFileVo queryModelFileVo) {
        return ResultHelper.multi(new ArrayList<>());
    }
    /**
     * 010102-模型文件-创建模型文件信息
     * @param modelFileVo : 模型文件信息
     * @return : com.persagy.dmp.common.model.response.CommonResult<java.lang.Void>
     * @author : lijie
     * Update By 2022/1/12 16:54
     * @undone
     */
    @PostMapping(value = "/saveModelFile")
    public CommonResult<List<Void>> saveModelFile(@Validated @RequestBody ModelFileVo modelFileVo) {
        return ResultHelper.multi(new ArrayList<>());
    }

}
