¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.se.simu.controller; |
| | | |
| | | import com.se.simu.service.SwwFilesDealService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.http.ResponseEntity; |
| | | import org.springframework.web.bind.annotation.CrossOrigin; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | |
| | | /** |
| | | * sww æä»¶äº¤ææ§å¶å¨ |
| | | * |
| | | * @author xingjinshuang@smartearth.cn |
| | | * @date 2025/02/20 |
| | | */ |
| | | @Api(tags = "SEMç¸å
³æ¥å£") |
| | | @CrossOrigin(origins = "*") |
| | | @RequiredArgsConstructor |
| | | @RestController |
| | | @RequestMapping("/api/v1/sww") |
| | | public class SwwFilesDealController { |
| | | // å¤ç Sww æä»¶çç¸å
³é»è¾ |
| | | |
| | | @Resource |
| | | private SwwFilesDealService swwFilesDealService; |
| | | |
| | | /** |
| | | * Sww æä»¶è¯»å模æ |
| | | */ |
| | | @ApiOperation("1 - Sww æä»¶è¯»å模æ") |
| | | @PostMapping("/read") |
| | | public ResponseEntity<Object> readSwwFile() throws Exception { |
| | | String filePath = "D:\\0a_project\\simulation\\other\\result_new.sem.db"; |
| | | return ResponseEntity.ok(swwFilesDealService.readSwwFile(filePath)); |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |