package com.fdkankan.contro.controller; import com.fdkankan.contro.dto.UploadSceneDTO; import com.fdkankan.contro.service.IHaixinService; import com.fdkankan.web.response.ResultData; import org.springframework.beans.factory.annotation.Autowired; 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 javax.validation.Valid; @RestController @RequestMapping("/api/scene/file") public class HaixinController { @Autowired private IHaixinService haixinService; @PostMapping("uploadScene") public ResultData uploadScene(@RequestBody @Valid UploadSceneDTO dto) throws Exception { return haixinService.uploadScene(dto); } }